我试图通过添加security.ignore=/**属性来禁用 spring boot 2.0.2 中的 spring 安全性,但它对我不起作用。
我的 application.properties:
spring.datasource.url = jdbc:mysql://localhost:3306/smile
spring.datasource.username = root
spring.datasource.password =
spring.datasource.driverClassName = com.mysql.jdbc.Driver
spring.jpa.hibernate.ddl-auto = update
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
# suppress inspection "SpringBootApplicationProperties"
security.ignored=/**
Run Code Online (Sandbox Code Playgroud)
结果: