Closed VINO42 closed 6 years ago
If you try ?
-Dlog4jdbc.auto.load.popular.drivers=false -Dlog4jdbc.drivers=com.mysql.cj.jdbc.Driver
ok, what should I do in the application.properties?
like this?: log4jdbc.auto.load.popular.drivers=false log4jdbc.drivers=com.mysql.cj.jdbc.Driver
I will try it
The file is log4jdbc.log4j2.properties
I just tried this is my log4jdbc.log4j2.properties contents: log4jdbc.spylogdelegator.name=net.sf.log4jdbc.log.slf4j.Slf4jSpyLogDelegator log4jdbc.auto.load.popular.drivers=false log4jdbc.drivers=com.mysql.cj.jdbc.Driver
it seems the log dispeared
thx!
Loading class
com.mysql.jdbc.Driver'. This is deprecated. The new driver class is
com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.pom:
using springboot 1.5.6