上一页 1 2 3 4 5 6 7 ··· 17 下一页
摘要: SpringSecurity(一、二、三)身份认证的用户名和密码是启动服务器自动生成的,或者是代码中写死的,存储在内存中。而实际项目中应该从动态的从数据库中获取进行身份认证。 1.实现流程: (1)关注 UserDetailsService 、 UserDetails 接口 (2)自定义一个 Use 阅读全文
posted @ 2021-01-05 00:03 西门夜说 阅读(2498) 评论(1) 推荐(1) 编辑
摘要: SpringSecurity默认情况下,提示信息都是英文的,其实是可配置成中文信息。 创建加载认证信息配置类ReloadMessageConfig /** * 加载认证信息配置类 * */ @Configuration public class ReloadMessageConfig { @Bean 阅读全文
posted @ 2020-12-18 02:32 西门夜说 阅读(436) 评论(0) 推荐(0) 编辑
摘要: 表单认证方式 Spring Security 默认提供了一个 bootstrap 登录页面,如果希望使用自定义的登录页面怎么办? .1.CustomLoginController用于实现认证(登录)处理。 /** * 登录处理 */ @Controller public class CustomLo 阅读全文
posted @ 2020-12-18 02:22 西门夜说 阅读(1493) 评论(0) 推荐(0) 编辑
摘要: public static <T> List<T> castList(Object obj, Class<T> clazz) { List<T> result = new ArrayList<T>(); if (obj instanceof List<?>) { for (Object o : (L 阅读全文
posted @ 2020-12-03 16:19 西门夜说 阅读(1799) 评论(0) 推荐(0) 编辑
摘要: 对象 对象 = JSON.parseObject(JSON.toJSONString(这里是LinkedHashMap对象), new TypeReference<这里是需要转换成的对象>() { }); 阅读全文
posted @ 2020-11-09 00:48 西门夜说 阅读(3988) 评论(0) 推荐(0) 编辑
摘要: 1.安装 vue-giant-tree npm i vue-giant-tree --save 2.在需要ztree树的页面引入 import tree from "vue-giant-tree"; 3.注册ztree components: { tree }, 4.在data中配置ztree // 阅读全文
posted @ 2020-10-13 00:09 西门夜说 阅读(6831) 评论(0) 推荐(1) 编辑
摘要: 1.安装依赖 npm install svg-sprite-loader --save-dev 2.在src/components下新建文件夹及文件SvgIcon/index.vue <template> <svg :class="svgClass" aria-hidden="true" v-on= 阅读全文
posted @ 2020-10-08 16:46 西门夜说 阅读(1430) 评论(0) 推荐(1) 编辑
摘要: 父组件:Nav.vue <template> <div> <el-menu default-active="1" background-color="#545c64" text-color="#fff" active-text-color="#ffd04b"> <!-- 引入组件 --> <Menu 阅读全文
posted @ 2020-09-29 11:17 西门夜说 阅读(4596) 评论(0) 推荐(0) 编辑
摘要: docker搭建 sentinel-dashboard:1.7.2 输入用户名密码,都是sentinel [root@bogon ~]# docker pull bladex/sentinel-dashboard:1.7.2 Trying to pull repository docker.io/b 阅读全文
posted @ 2020-09-19 22:10 西门夜说 阅读(1752) 评论(0) 推荐(0) 编辑
摘要: seata官网:http://seata.io/zh-cn/docs/user/registry/nacos.html 本次采用,将容器的文件复制到容器外,在容器外修改完成后,再复制进去。这里要修改的文件有:registry.conf和file.conf。 容器内部不能容vim 懒得执行apt-ge 阅读全文
posted @ 2020-09-19 21:08 西门夜说 阅读(1489) 评论(0) 推荐(1) 编辑
上一页 1 2 3 4 5 6 7 ··· 17 下一页