对于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.
这是由于mysql驱动默认依赖类型为runtime,将修改scope为compile就可以解决。