小编aZg*_*dou的帖子

在 spring boot 2.0.2 中禁用 spring security

我试图通过添加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)

结果:

在此处输入图片说明

spring-security spring-boot

4
推荐指数
1
解决办法
7128
查看次数

标签 统计

spring-boot ×1

spring-security ×1