You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

84 lines
3.7 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# health-manager
#### 介绍
个人健康信息管理系统
#### 软件架构
spring+springmvc+mybatis+mysql+jsp+bootstrap
#### 安装教程
1. 数据库导入sql文件
2. eclipse导入maven项目
3. 设置项目project facets配置版本Dynamic Web Model为[3.0,)
4. 配置web容器导入项目到容器中启动容器
#### 使用说明
1. 访问地址:(http://localhost:{web容器端口}/{项目名称}/)
#### 项目效果
![alt 登录](https://service.beansprout.top/image/health-manager/login.jpg)
![alt 首页](https://service.beansprout.top/image/health-manager/home.jpg)
![alt 健康列表](https://service.beansprout.top/image/health-manager/health_list.jpg)
![alt 健康统计](https://service.beansprout.top/image/health-manager/health_statistics.jpg)
#### 附录
##### Mybatis字段类型映射
```
JDBCType | JavaType
----------------------------
CHAR String
VARCHAR String
LONGVARCHAR String
NUMERIC java.math.BigDecimal
DECIMAL java.math.BigDecimal
BIT boolean
BOOLEAN boolean
TINYINT byte
SMALLINT short
INTEGER int
BIGINT long
REAL float
FLOAT double
DOUBLE double
BINARY byte[]
VARBINARY byte[]
LONGVARBINARY byte[]
DATE java.sql.Date
TIME java.sql.Time
TIMESTAMP java.sql.Timestamp
CLOB Clob
BLOB Blob
ARRAY Array
DISTINCT mapping of underlying type
STRUCT Struct
REF Ref
DATALINK java.net.URL[color=red][/color]
```
##### SpringMVC 入参校验注解
```
校验注解 可校验类型 具体类型
@AssertTrue Boolean、boolean 属性必须是true
@AssertFalse Boolean、boolean 属性必须是false
@Null 基本类型除外 属性必须为null
@NotNull 基本类型除外 属性必须不能为null
@NotEmpty CharSequence、Collection、Map 属性不能为null字符串和集合长度不能为0无法校验空字符串
@NotBlank CharSequence 属性不能为null并不能为空字符串
@Size CharSequence、Collection、Map 属性长度必须在指定范围
@Length CharSequence 属性长度必须在指定范围
@Min Number 属性必须大于指定最小值
@Max Number 属性必须小于指定最大值
@Range Number 属性在指定返回内
@Past Date、Calender 属性时间必须大于当前时间
@Future Date、Calender 属性时间必须小于当前时间
@Email CharSequence 属性必须是合法邮件格式
@Pattern CharSequence 属性必须匹配正则表达式
```
#### 码云特技
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)