上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 40 下一页
摘要: 1.主要pom依赖: 2.userDao: 这里继承JpaRepository后,会有主要的增删改查方法,还有查询所有list(), 分页查询list() 等基础方法。如果要自定义方法,可根据jpa标准来定义,比如: //根据用户名查询单个用户: User findOneByUserName(Str 阅读全文
posted @ 2017-03-14 10:33 艺言弈行 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 1.pom中添加thymeleaf和security依赖 <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId> </de 阅读全文
posted @ 2017-03-14 10:10 艺言弈行 阅读(280) 评论(0) 推荐(0) 编辑
摘要: js: 阅读全文
posted @ 2017-02-27 15:58 艺言弈行 阅读(4622) 评论(0) 推荐(0) 编辑
摘要: 1.springboot 项目中添加swagger2依赖: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> 阅读全文
posted @ 2017-02-20 17:24 艺言弈行 阅读(2183) 评论(0) 推荐(0) 编辑
摘要: springboot中使用redis:(1).使用redis工具类手动操作缓存(2).使用cacheable注解到方法头,自动创建缓存数据 1.安装redis https://github.com/dmajkic/redis/downloads 下载后解压: cmd中启动redis: 启动: D: 阅读全文
posted @ 2017-02-16 17:42 艺言弈行 阅读(810) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 40 下一页