请问7.2后driverClassName在哪里设置?

使用的mysql8,CUBA7.2.7
创建新项目启动后有警告如下:
1:49:21.938 INFO c.h.c.c.s.e.DataStoresCheck - Checking connection to data store Main
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.

原来是在context.xml设置,现在改到配置文件了,但是文档给的例子没有设置driverClassName,请问怎么设置呢?

通过设置
cuba.dataSource.driverClassName = com.mysql.cj.jdbc.Driver
解决了

1 个赞