Spring Security关闭

Spring Security关闭

新年第二个趴,请求无消息,postman请求是空白?
Spring Security关闭_第1张图片
输入到浏览器发现要登录??
idea后台提示
Using generated security password: 7d96fd39-c828-4e05-ad90-6f8b41277fbb

This generated password is for development use only. Your security configuration must be updated before running your application in production.
一脸懵逼
原因,是因为打开或添加了Spring Security
解决办法:主文件添加:@SpringBootApplication(exclude = {SecurityAutoConfiguration.class})

Spring Security关闭_第2张图片

你可能感兴趣的:(spring,java,后端)