spring boot教程
从新建springboot项目开始,逐渐深入学习。
叫我柒月
这个作者很懒,什么都没留下…
展开
-
springboot开发bug解决1
1.使用mybatis-plus关于多模块自定义mapper找不到问题2.thymleaf的th:text如何拼接字符串3.使用thymleaf的一些配置原创 2020-12-29 12:57:06 · 242 阅读 · 0 评论 -
5.post实现swagger提交json对象数据
post实现swagger提交json对象数据原创 2020-09-12 16:51:50 · 4661 阅读 · 0 评论 -
4.使用swagger实现post请求
文章目录专栏目录一、编写一个post请求的方法二、在swagger.html进行post提交专栏目录https://blog.csdn.net/xiaobai_july/category_10377198.html一、编写一个post请求的方法接收两个字符参数,定义的类型要和你数据库的类型对应。 @PostMapping(value = "/add",produces = "text/html; charset=UTF-8") public String InsertData(Str原创 2020-09-12 16:29:15 · 11874 阅读 · 1 评论 -
3.springboot配置swagger2
系列文章目录文章目录系列文章目录前言一、添加dependency及创建配置类二、测试swagger2是否生效前言springboot配置swagger2,包括pom.xml、配置类设置一、添加dependency及创建配置类 <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactI原创 2020-09-11 20:19:18 · 187 阅读 · 0 评论 -
2.springboot连接数据库获取数据并输出
pom.xml <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency> <dependency&g原创 2020-09-11 15:50:18 · 5844 阅读 · 0 评论 -
1.idea创建springboot项目,实现hello world
也可以不选择spring web和mysql,之后再pom.xml上添加也行。默认端口是8080,页面是indexspring.resources.static-locations=classpath:/static/,classpath:/templates/原创 2020-09-10 19:41:11 · 195 阅读 · 0 评论