会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
你好
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
下一页
2020年11月30日
12_springboot myBatis crud
摘要: 1.pom.xml增加对PageHelper支持 <!--pagehelper支持--> <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper</artifactId> <version>4.1.6<
阅读全文
posted @ 2020-11-30 11:07 脑袋有点大
阅读(72)
评论(0)
推荐(0)
2020年11月29日
11_springboot JPA crud
摘要: 1.在StudentController下添加增删改查 @Controller public class StudentController { @Autowired StudentDAO studentDAO; @RequestMapping("/listStudent") public Stri
阅读全文
posted @ 2020-11-29 09:39 脑袋有点大
阅读(87)
评论(0)
推荐(0)
2020年11月26日
10_springboot mybatis支持
摘要: 一、注解方式 1.pom.xml配置 <!-- mysql支持--> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>8.0.21</version> </dep
阅读全文
posted @ 2020-11-26 15:32 脑袋有点大
阅读(79)
评论(0)
推荐(0)
2020年11月25日
09_springboot增加jpa支持
摘要: 1.创建数据库 create database school; 2.创建表 use school; create table student( stuId int(16) NOT NULL AUTO_INCREMENT, name varchar(30), sex boolean, PRIMARY
阅读全文
posted @ 2020-11-25 08:38 脑袋有点大
阅读(93)
评论(0)
推荐(0)
2020年11月24日
08_springboot中yml
摘要: 配置文件除了properties格式外,还有yml格式 yml格式: spring: mvc: view: prefix: /WEB-INF/jsp/ suffix: .jsp server: port: 8080 context-path: /test 运行后 properties格式 sprin
阅读全文
posted @ 2020-11-24 17:16 脑袋有点大
阅读(123)
评论(0)
推荐(0)
07_pom.xml下增加对JSP的支持
摘要: 1.增加servlet依赖 <!-- servlet依赖 --> <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> </dependency> <dependency> <
阅读全文
posted @ 2020-11-24 11:02 脑袋有点大
阅读(234)
评论(0)
推荐(0)
06_springboot热部署
摘要: 1.在pom.xml添加相应的依赖 <!--支持热部署--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</
阅读全文
posted @ 2020-11-24 09:23 脑袋有点大
阅读(42)
评论(0)
推荐(0)
2020年11月23日
05_springboot多配置文件
摘要: 1.多配置文件,其中application.properties中的spring.profiles.active能够灵活的切换使用环境 application.properties spring.mvc.view.prefix=/WEB-INF/jsp/ spring.mvc.view.suffix
阅读全文
posted @ 2020-11-23 17:32 脑袋有点大
阅读(187)
评论(0)
推荐(0)
04_springBoot端口和上下文路径
摘要: 1.在application.properties中添加如下内容 server.port=8888 spring.mvc.servlet.path=/test 2.访问127.0.0.1:8888/test/hello
阅读全文
posted @ 2020-11-23 13:51 脑袋有点大
阅读(63)
评论(0)
推荐(0)
2020年11月20日
03_springboot错误处理.md
摘要: 1.添加异常,在HelloController代码段内,添加异常,方便进行测试。 @RequestMapping("/hello") public String hello(Model m) throws Exception { m.addAttribute("now", DateFormat.ge
阅读全文
posted @ 2020-11-20 10:56 脑袋有点大
阅读(87)
评论(0)
推荐(0)
上一页
1
2
3
4
下一页
公告