
springboot
文章平均质量分 65
zhangfei_bk
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
springboot在后端接受前端参数的几种方法
GET方法获取参数:1.直接在方法中指定参数。 @RequestMapping("/query") @ResponseBody public Student getStudent1(String id){ Student s = studentService.getStudent(id); return s; }访问方法:http://127.0.0.1:8080/student/query?id=12.使用PathVariable原创 2021-03-10 20:06:01 · 6123 阅读 · 0 评论 -
springboot整合thymeleaf模板引擎
1. 在pom.xml文件引入thymeleaf的依赖。<!-- 与Thymeleaf集成 --><dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId></dependency>2.在application.properties(ap原创 2021-03-08 18:13:17 · 126 阅读 · 0 评论 -
SpringBoot整合mybatis操作数据库
1.加入mysql数据库的驱动文件依赖和mybatis的依赖<!--数据库的驱动--><dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId></dependency><!--告诉SpringBoot:用什么数据库,版本在parent工程中原创 2021-03-08 16:32:20 · 308 阅读 · 4 评论