SpringSecurity+Thymeleaf的应用场景中,HTML模板文件使用验证身份的函数没生效
继续阅读SpringSecurity+Thymeleaf中sec:authorize="isAuthenticated()"不生效问题
SpringSecurity+Thymeleaf的应用场景中,HTML模板文件使用验证身份的函数没生效
继续阅读SpringSecurity+Thymeleaf中sec:authorize="isAuthenticated()"不生效问题
最近基于Spring Boot做一个项目,实现Restful+Json的API。
其中涉及到全局的异常处理,比如HTTP的异常404, 505等等。比如404,默认Spring Boot会返回"Whitelabel Error Page"页面,但是我需要把这个错误页面统一以JSON格式返回。
具体的代码,可以看这里:《SpringBootGlobalExceptionHandler》