- 博客(4)
- 收藏
- 关注
原创 Springboot+maven项目下外链CSS与JS
Springboot+maven项目下外链CSS与JS实际文件路径如下我的文件是index.html 利用thymeleaf外链资源 <link rel="stylesheet" type="text/css" th:href="@{layui/css/layui.css}"/> <script th:src="@{layui/layui.js}"></s...
2019-06-12 15:16:28
235
原创 Security与Iframe兼容性处理
Security与Iframe兼容性处理在权限配置的类中添加如下代码段//解决iframe与安全器兼容性问题http.headers().frameOptions().disable();
2019-06-12 15:07:28
541
原创 SecurityBCrypt登录加密
SecurityBCrypt登录加密1,在实现了WebSecurityConfigurerAdapter的类中添加配置 //加密配置 @Bean public PasswordEncoder passwordEncoder() { return new BCryptPasswordEncoder(); } protected voi...
2019-06-12 15:03:17
450
转载 Springboot+Security用户无权限返回自定义信息
@Springboot+Security用户无权限返回自定义信息返回信息分为跳转自定义页面和字符串提醒返回信息分为跳转自定义页面和字符串提醒,这里我将都介绍并将自己遇到的问题做出解释返回自定义界面提示只需要修改启动类import org.springframework.boot.SpringApplication;import org.springframework.boot.au...
2019-06-12 14:46:07
6567
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人