As if time zone problem, added serverTimezone=GMT nor partly Java. SQL. SQLException: always create a PoolableConnectionFactory (The server time zone value '????? U + e x?? Plus or minus?? ' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support.)at org.apache.tomcat.dbcp.dbcp2.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:2385)at org.apache.tomcat.dbcp.dbcp2.BasicDataSource.createDataSource(BasicDataSource.java:2110)at org.apache.tomcat.dbcp.dbcp2.BasicDataSource.getConnection(BasicDataSource.java:1563)at com.it.util.DBUtil2.getConnection(DBUtil2.java:27)at com.it.dao.impl.NewsDaoImpl.getNews(NewsDaoImpl.java:31)at com.it.dao.impl.NewsDaoImpl.getNewsByTid(NewsDaoImpl.java:117)at com.it.service.impl.NewsServiceImpl.getNewsByTid(NewsServiceImpl.java:48
CodePudding user response:
Don't drive to be the problem