【发布时间】:2018-11-26 19:27:52
【问题描述】:
我可以在编辑时使用RemoteSpringApplication 重新加载应用程序,直到我为我的应用程序添加弹簧安全性,
与
@EnableWebSecurity
public class WebAuthConfig extends WebSecurityConfigurerAdapter { ..
等
虽然我添加了事件:
// TODO: this disable all security checks httpSecurity.httpBasic().disable().authorizeRequests().anyRequest().permitAll();
所以我所有的休息电话在没有任何身份验证的情况下仍然有效,
只要我更改代码并运行 RemoteSpringApplication 检测到更改失败:
Exception in thread "File Watcher" java.lang.IllegalStateException: Unexpected 403 response uploading class files
如何预防?
谢谢
【问题讨论】:
标签: java spring-boot spring-security hot-reload