![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
技术博客
别让☞流星☜迷路
这个作者很懒,什么都没留下…
展开
-
Springboot+Security用户无权限返回自定义信息
@Springboot+Security用户无权限返回自定义信息返回信息分为跳转自定义页面和字符串提醒返回信息分为跳转自定义页面和字符串提醒,这里我将都介绍并将自己遇到的问题做出解释返回自定义界面提示只需要修改启动类import org.springframework.boot.SpringApplication;import org.springframework.boot.au...转载 2019-06-12 14:46:07 · 6465 阅读 · 0 评论 -
SecurityBCrypt登录加密
SecurityBCrypt登录加密1,在实现了WebSecurityConfigurerAdapter的类中添加配置 //加密配置 @Bean public PasswordEncoder passwordEncoder() { return new BCryptPasswordEncoder(); } protected voi...原创 2019-06-12 15:03:17 · 363 阅读 · 0 评论 -
Security与Iframe兼容性处理
Security与Iframe兼容性处理在权限配置的类中添加如下代码段//解决iframe与安全器兼容性问题http.headers().frameOptions().disable();原创 2019-06-12 15:07:28 · 463 阅读 · 0 评论 -
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 · 191 阅读 · 0 评论