当注解
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
遇上application.properties时
# mysql数据库连接
spring.datasource.url=jdbc:mysql://localhost:3306/MoneyProject?characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT&allowPublicKeyRetrieval=true
spring.datasource.username=root
spring.datasource.password=123
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.max-idle=10
spring.datasource.max-wait=10000
spring.datasource.min-idle=5
spring.datasource.initial-size=5
就会报错org.springframewo