[springboot笔记二]创建相关文件

[springboot笔记二]创建相关文件

一、后端

1. application.yaml设置端口,配置数据库,ip等

2. Controller文件层

—2.1 WebController

3. entity文件层(实体类)

—3.1 User(类)

4.Mapper文件层 (Dao层)

—4.1 UserMapper

5.Config层

—5.1MybatisPlusConfig扫描mapper文件

6.Service层

—6.1 IUserService接口

—6.2 Impl层

---------6.2.1 UserServiceImpl实现类

7.common层

—7.1 Result

—7.2 Constants (Interface)

二、前端

1. config目录

—config.default.ts设置port,ip,projectname,serverhost(http)

2. src目录

—2.1 assets(静态)

------2.1.1 404.vsg

—2.2 views视图(网页)

------Home.vue

—2.3 router(路由)

------2.3.1 index.js