摘要: 因个人业务需求,打算同时对csdn博客内容及博客园合并,现在将本人博客园的博客搬家至CSDN,希望我的博客能帮助到大家,谢谢,祝大家新年快乐,我的CSDN博客搬家地址为:https://blog.csdn.net/KingCherry 阅读全文
posted @ 2020-01-15 14:06 CherryKing 阅读(79) 评论(0) 推荐(0) 编辑
摘要: spring mvc 的jpa JpaRepository数据层 访问方式汇总 博客分类: spring jpa springjpaJpaRepository spring mvc 的jpa JpaRepository数据层 访问方式汇总 spring jpa springjpaJpaReposit 阅读全文
posted @ 2017-09-03 00:13 CherryKing 阅读(675) 评论(0) 推荐(0) 编辑
摘要: ddl-auto: create 每次都会创建表 如果表存在就会先drop再create ddl-auto: update 表不存在就create 表存在就update ddl-auto: validate 验证表结构 ddl-auto: create-drop 程序结束后会把表drop掉 阅读全文
posted @ 2017-08-28 21:33 CherryKing 阅读(264) 评论(0) 推荐(0) 编辑
摘要: @RequestMapping(value="/hello",method=RequestMethod.Post) ==@PostMapping(value="/hello") @RequestMapping(value="/hello",method=RequestMethod.Get) ==@G 阅读全文
posted @ 2017-08-27 16:52 CherryKing 阅读(493) 评论(0) 推荐(0) 编辑
摘要: 在使用springboot 可以添加spring-boot-starter-thymeleaf 这个插件来直接通过controller层 return “index”;界面运行,但不推荐使用 阅读全文
posted @ 2017-08-27 16:45 CherryKing 阅读(123) 评论(0) 推荐(0) 编辑
摘要: @RestController == @RequestBoddy+@Controller @PathVariable 获取url中的数据 @RequestParam 获取请求参数的值 @GetMapping 组合注解 阅读全文
posted @ 2017-08-27 16:43 CherryKing 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 视图解析器是写在 springmvc.xml 的配置文件中,在xml中如果没有显式配置该配置文件的名称,那么你的spirngmvc配置文件名称就是<serlvet-name>-servlet.xml, 并且文件自动存放在WEB-INF下;如果显示配置了,如在xml中<servlet>配置了<para 阅读全文
posted @ 2017-08-05 13:08 CherryKing 阅读(3680) 评论(0) 推荐(0) 编辑
摘要: 先增加maven依赖: [html] view plain copy print? <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper</artifactId> <version>4.0.0</ve 阅读全文
posted @ 2017-08-05 11:20 CherryKing 阅读(264) 评论(0) 推荐(0) 编辑