随笔分类 -  spring boot spring mvc

spring boot spring mvc
SpringMvc基础知识
摘要:SpringMVC的一些基础知识记录并分享 1,注解@Controller 负责注册一个bean到spring context中@Controller("tmpController") 类名称开头字母必须小写 @RequestMapping("/register") @RequestMapping( 阅读全文

posted @ 2018-09-10 16:10 chenzx0918 阅读(141) 评论(0) 推荐(0)

在IEDA中更新POM文件中的依赖包
摘要:如何更新POM文件中的依赖: 在IEDA右侧: 点击更新按钮: 等待完成更新 阅读全文

posted @ 2018-02-11 14:34 chenzx0918 阅读(307) 评论(0) 推荐(0)

spring boot 表单校验
摘要:1.在pom中添加依赖: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-validation</artifactId> </dependency> 2.实体中添加过滤条 阅读全文

posted @ 2018-02-09 13:52 chenzx0918 阅读(231) 评论(0) 推荐(0)

spring boot 整合 mybatis
摘要:参考博客:http://blog.csdn.net/winter_chen001/article/details/77249029 参考博客:https://www.cnblogs.com/peterxiao/p/7779188.html 参考博客:https://www.cnblogs.com/y 阅读全文

posted @ 2018-02-07 16:30 chenzx0918 阅读(112) 评论(0) 推荐(0)

spring boot +maven+ thymeleaf+mysql 第一个spring boot实例总结
摘要:spring boot 基础入门: 1.参考 CSDN博客:http://blog.csdn.net/ityouknow/article/details/70053058 2.在IDEA下搭建maven环境:参考博客:http://blog.csdn.net/u013248535/article/d 阅读全文

posted @ 2018-02-07 15:58 chenzx0918 阅读(874) 评论(0) 推荐(0)

springmvc请求参数获取的几种方法
摘要:1、直接把表单的参数写在Controller相应的方法的形参中,适用于get方式提交,不适用于post方式提交 /** * 1.直接把表单的参数写在Controller相应的方法的形参中 * @param username * @param password * @return */ @Reques 阅读全文

posted @ 2017-12-11 13:23 chenzx0918 阅读(179) 评论(0) 推荐(0)

Spring Boot 注解的使用
摘要:Spring Boot 优于Spring mvc ,SSM,SSH 的一个亮点就是他使用了好多的注解。 1. @Autowired 这个注解的作用是将其他的类,接口引入,类似于之前的类的初始化等,用这个注解,类中或接口的方法就可以直接调用了。 这个注解和@Inject,@Resource 作用类似, 阅读全文

posted @ 2017-12-11 11:05 chenzx0918 阅读(150) 评论(0) 推荐(0)

导航