Springboot基础
概述
springboot 项目开发流程
1. 环境搭建
- 创建数据库
- 前端框架搭建
2. 配置文件
- 配置 src/main/resources/application.properties 文件.
3. 代码逻辑
- 持久层逻辑
- 业务层逻辑
- 控制层逻辑
springboot 项目的目录结构
目录结构示例
src/
|-- main
| |-- java
| | |-- com
| | |-- cy
| | |-- store
| | |-- StoreApplication.java
| | |-- config
| | |-- controller
| | |-- entity
| | |-- interceptor
| | |-- mapper
| | |-- service
| | |-- util
| |-- resources
| |-- application.properties
| |-- mapper
| |-- static
| | |-- bootstrap3
| | | |-- css
| | | |-- font-awesome-4.7.0
| | | |-- fonts
| | | |-- jquery-1.8.3.min.js
| | | |-- jquery-1.9.1.min.js
| | | |-- js
| | |-- css
| | |-- images
| | |-- index.html
| | |-- js
| | |-- web
| |-- templates
|-- test
|-- java
|-- com
|-- cy
|-- store
|-- service