博主首页
上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 47 下一页
摘要: 依赖以及使用 <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper</artifactId> <version>5.1.8</version> </dependency> PageHelper.sta 阅读全文
posted @ 2020-08-13 16:08 笑~笑 阅读(198) 评论(0) 推荐(0)
摘要: idea版本不一样 、菜单可能会变 找到截图中的这个菜单即可 阅读全文
posted @ 2020-08-13 15:12 笑~笑 阅读(441) 评论(0) 推荐(0)
摘要: 依赖注入 1、非静态属性 @Configuration @ConfigurationProperties("flow") @Data @Accessors(chain = true) public class FlowConfig { /** * 账号 */ private String usern 阅读全文
posted @ 2020-08-10 13:50 笑~笑 阅读(520) 评论(0) 推荐(0)
摘要: List<MenuPO> menuList = RecursionUtil.getFather(menuPOS); //去重复 menuList = menuList.stream().distinct().collect(Collectors.toList()); 根据条件去重 List<Cons 阅读全文
posted @ 2020-08-07 16:41 笑~笑 阅读(183) 评论(0) 推荐(0)
摘要: 可以断点 访问看看 访问的路径和配置的路径是否一样、失效 MappedInterceptor可以将这个类名写在idea中,然后引包点进去就找到了 阅读全文
posted @ 2020-08-06 11:04 笑~笑 阅读(4111) 评论(0) 推荐(0)
摘要: String property = System.getProperty("user.dir")+File.separator; System.out.println(property); 阅读全文
posted @ 2020-08-04 10:57 笑~笑 阅读(316) 评论(0) 推荐(0)
摘要: private <T> void test(T t,ErrorCode e,Status s){ if(t==null){ s.setMessage(e.getMessage()); s.setStatus(e.getStatus()); } } 阅读全文
posted @ 2020-07-31 15:12 笑~笑 阅读(1531) 评论(0) 推荐(0)
摘要: 打开idea安装插件的位置 搜索 Free Mybatis plugin 安装重启即可 安装完插件之后 ,就可以从接口里面点到xml中,从xml中点到方法里面了 阅读全文
posted @ 2020-07-24 17:14 笑~笑 阅读(969) 评论(0) 推荐(0)
摘要: 1、部署在tomcat下: 找到tomcat下的webapps文件下 WEB-INF文件夹 web.xml文件 添加 <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" 阅读全文
posted @ 2020-07-24 15:18 笑~笑 阅读(1974) 评论(0) 推荐(0)
摘要: 入参验证list,入参验证集合 接受参数的controller需要加上注解 @Valid 或 @Validated 1.@Valid与@Validated都是用来校验接收参数的。 2.@Valid是使用Hibernate validation的时候使用 3.@Validated是只用Spring V 阅读全文
posted @ 2020-07-24 11:26 笑~笑 阅读(604) 评论(0) 推荐(0)
上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 47 下一页