spring boot web开发 简单的增删改查和spring boot 自带的Junit测试 案例
Posted 小屈工作室
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了spring boot web开发 简单的增删改查和spring boot 自带的Junit测试 案例相关的知识,希望对你有一定的参考价值。
创建 web项目
配置pom.xml文件 ------相当于jar包
配置application.yml -----配置文件(spring数据库连接、server服务、logging日志等)
创建 package (entity、controller、service、configuration、repository、interceptor等)
小例子:
entity:Person
数据持久化(dao):
controller:
spring 自带Junit测试@SpringBootTest,不用自己在pom.xml里配置Junit
以上是关于spring boot web开发 简单的增删改查和spring boot 自带的Junit测试 案例的主要内容,如果未能解决你的问题,请参考以下文章
Springmvc+Spring+Mybatis+Maven简单的增删改查
企业工程项目管理系统源码+java版本+项目模块功能清单+spring cloud +spring boot
企业工程项目管理系统源码+java版本+项目模块功能清单+spring cloud +spring boot