Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

mysql8.0 problems #40

Closed
VINO42 opened this issue May 21, 2018 · 5 comments
Closed

mysql8.0 problems #40

VINO42 opened this issue May 21, 2018 · 5 comments

Comments

@VINO42
Copy link

VINO42 commented May 21, 2018

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:

org.bgee.log4jdbc-log4j2
log4jdbc-log4j2-jdbc4.1
1.16


org.slf4j
slf4j-api


mysql
mysql-connector-java
8.0.11

using springboot 1.5.6

@brunorozendo
Copy link
Owner

If you try ?
-Dlog4jdbc.auto.load.popular.drivers=false -Dlog4jdbc.drivers=com.mysql.cj.jdbc.Driver

@VINO42
Copy link
Author

VINO42 commented May 22, 2018

ok, what should I do in the application.properties?

@VINO42
Copy link
Author

VINO42 commented May 22, 2018

like this?:
log4jdbc.auto.load.popular.drivers=false
log4jdbc.drivers=com.mysql.cj.jdbc.Driver

I will try it

@brunorozendo
Copy link
Owner

The file is log4jdbc.log4j2.properties

@VINO42
Copy link
Author

VINO42 commented May 22, 2018

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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants