YuezhenQin / yuezhenqin.github.io

This is a ✨special ✨ repository for Q.
2 stars 0 forks source link

软件开发流程 #11

Open YuezhenQin opened 6 days ago

YuezhenQin commented 6 days ago
  1. 执行 sql

Image

  1. 创建空白 maven 工程

Image

Image

连接数据库

Image

在 pom.xml 中引入对应的依赖

Image

spring-boot-starter-web

mysql-connector-j

mybatis-spring-boot-starter

lombok

  1. 创建包的层次结构 com.caa.controller com.caa.service com.caa.mapper com.caa.pojo 实体类 com.caa.utils 工具类

准备当前工程需要用到的实体类

改造 App 为 @SpringBootApplication

YuezhenQin commented 6 days ago

API 开发流程

  1. 定义需求
  2. 定义接口文档,确定各个接口的输入和输出的格式和作用。
  3. 开发
  4. 测试接口的正确性