27. Assignment¶
27.1. Maven¶
27.1.1. 练习的目标¶
- 掌握在线构建 spring boot 项目
- 掌握 maven 环境,仓库知识
- 掌握 maven 依赖关系
- 掌握 maven 执行周期
- 掌握 git 使用方法
- 掌握 spring boot 项目的基本功能
27.1.2. 练习的要求¶
- Create a parent project with 3 submodules.
This app will consist of three modules, that will represent:
- The core part of our domain
- A web service providing some information from accessing RTC(IBM Rational Team Concert)
- A webapp containing user-facing web assets of some sort
Parent’s pom.xml file:
1 2 3 4 5
<modules> <module>core</module> <module>service</module> <module>webapp</module> </modules>
- Building the Project:
- At least 1 unit test in each module.
- Run “mvn package” successful.
- Deploy the Project:
There is an area for displaying RTC information in webapp.
Commit your assignment into github with .gitignore.
注解
注意2点 1. 子moudle里面不能有package plugin; 2. web里面的application的包路径需要在所有子module的包的父级
27.2. CRUD¶
CRUD(Create Read Update Delete)
27.2.1. 练习的目标¶
掌握Spring Boot 项目基本的CRUD操作
27.2.2. 练习的要求¶
搭建Spring Boot项目开发环境,添加依赖(Web Thymeleaf JPA H2)
实现进度表记录的展示、添加、修改和删除
- 修改默认端口
- 使用@Value标签,页面显示项目名称
- 创建Entity(进度表),持久化到H2数据库,项目启动时,初始化数据
- 自定义错误页面
- 界面使用Bootstrap(可选)
Commit your assignment into github with .gitignore.
部署到阿里云(可选任何私有云)