Cannot resolve class or package 'jdbc' less... (Ctrl+F1)

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

对于springboot 2.*项目idea如下提示:

Cannot resolve class or package 'jdbc' less... (Ctrl+F1) 
Inspection info: Checks Spring Boot application .properties configuration files. Highlights unresolved and deprecated configuration keys and invalid values.

9fa7a5356b9e1612b136aa798ea64c0f40e.jpg

这是由于mysql驱动默认依赖类型为runtime,将修改scope为compile就可以解决。

Cannot resolve class or package 'jdbc' less... (Ctrl+F1)_第1张图片

转载于:https://my.oschina.net/pipimao/blog/3055257

你可能感兴趣的:(数据库,runtime,python)