- db.properties文件中key命名有误,不能使用username
- 解决方法:
修改db.properties文件中key,如下,使用了username这个key就会报错
问题就出现在username这个命名,不能用这个,要么换成user,要么在key前面加上前缀driverClass=com.mysql.cj.jdbc.Driver url=jdbc:mysql://softwind.site:3300/ssmbuild username=root password=***
jdbc.driverClass=com.mysql.cj.jdbc.Driver jdbc.url=jdbc:mysql://softwind.site:3300/ssmbuild jdbc.username=root jdbc.password=***
07-14
639
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
02-19
1670
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-23
10万+
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-01
2858
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
12-11
1909
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)