摘要: 参考:https://blog.csdn.net/motui/article/details/79012846 介绍 在项目中使用Lombok可以减少很多重复代码的书写。比如说getter/setter/toString等方法的编写。 引入依赖 Lombok有哪些注解 @Setter@Getter 阅读全文
posted @ 2018-10-10 20:22 帅的很耗cpu 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 参考:https://www.cnblogs.com/hanfeihanfei/p/7079210.html 注解都比较详细了 前端代码(ie8和chrome前端获取的路径会出问题) 可以直接用 阅读全文
posted @ 2018-10-10 15:57 帅的很耗cpu 阅读(4503) 评论(1) 推荐(0) 编辑
摘要: 转载 :https://www.cnblogs.com/zhaoyuwei/p/9038135.html 不需要在实体类些@Excel(name = "登录名", width = 16, orderNum = "1")这些 前端代码和js 依赖 <dependency> <groupId>cn.af 阅读全文
posted @ 2018-10-09 14:19 帅的很耗cpu 阅读(3228) 评论(0) 推荐(0) 编辑
摘要: 在eclipse中找到pom.xml文件右键 选择debug as 再选择Maven install运行后 按路径找到生成的war包 推荐https://www.cnblogs.com/qlqwjy/p/8231032.html 阅读全文
posted @ 2018-10-09 11:42 帅的很耗cpu 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 数据库的设计 使用ssm 实体类 mapper映射文件查询出所有的菜单 使用递归方法 阅读全文
posted @ 2018-10-08 15:08 帅的很耗cpu 阅读(3422) 评论(0) 推荐(0) 编辑
摘要: public class UserDto implements Serializable{ /** * 登录名 */ private String loginName; /** * 昵称 */ private String nickName; /** * 手机号码 */ private String 阅读全文
posted @ 2018-09-29 16:16 帅的很耗cpu 阅读(5476) 评论(0) 推荐(0) 编辑
摘要: 今天在博客园看到有发布spring的注解,留意到@transactional这个注解。立马就百度。学习了 使用这个注解的类或者方法表示该类里面的所有方法或者这个方法的事务由spring处理,来保证事务的原子性,即是方法里面对数据库操作,如果失败则spring负责回滚操作,成功则提交操作。 @Tran 阅读全文
posted @ 2018-09-29 16:00 帅的很耗cpu 阅读(14022) 评论(0) 推荐(2) 编辑