diff --git a/pom.xml b/pom.xml
index a542977e1f46200c4860eeee8dc0e6c04f560032..a146dca6c5170e5593fd9134ae9db09739d98336 100644
--- a/pom.xml
+++ b/pom.xml
@@ -8,15 +8,25 @@
2.6.6
+
com.example
HealthMonitoringSystem
0.0.1-SNAPSHOT
+
HealthMonitoringSystem
- HealthMonitoringSystem
+ 健康监测系统
+
1.8
+
+
+ org.mybatis.spring.boot
+ mybatis-spring-boot-starter
+ 1.3.1
+
+
org.springframework.boot
spring-boot-starter-web
@@ -27,11 +37,31 @@
mysql-connector-java
runtime
+
+
+
+ com.alibaba
+ druid
+ 1.0.29
+
+
org.springframework.boot
spring-boot-starter-test
test
+
+
+ io.springfox
+ springfox-swagger2
+ 2.9.2
+
+
+
+ com.google.guava
+ guava
+ 20.0
+
@@ -39,6 +69,17 @@
org.springframework.boot
spring-boot-maven-plugin
+
+ true
+
+
+
+
+ org.apache.maven.plugins
+ maven-surefire-plugin
+
+ true
+
diff --git a/src/main/java/com/example/healthmonitoringsystem/HealthMonitoringSystemApplication.java b/src/main/java/com/example/HealthMonitoringSystemApplication.java
similarity index 88%
rename from src/main/java/com/example/healthmonitoringsystem/HealthMonitoringSystemApplication.java
rename to src/main/java/com/example/HealthMonitoringSystemApplication.java
index a9f7179b8c2611317c8ff7e6fb83c5a4708a5605..79b40042da78ecf47d62f6d656aa1bcfbec66fdb 100644
--- a/src/main/java/com/example/healthmonitoringsystem/HealthMonitoringSystemApplication.java
+++ b/src/main/java/com/example/HealthMonitoringSystemApplication.java
@@ -1,4 +1,4 @@
-package com.example.healthmonitoringsystem;
+package com.example;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
diff --git a/src/main/java/com/example/controller/UserController.java b/src/main/java/com/example/controller/UserController.java
new file mode 100644
index 0000000000000000000000000000000000000000..4842ef1353dd5c43c1cd0009806df3608e44d525
--- /dev/null
+++ b/src/main/java/com/example/controller/UserController.java
@@ -0,0 +1,15 @@
+package com.example.controller;
+
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+@RestController
+public class UserController
+{
+
+ @RequestMapping("/hello")
+ public String hello()
+ {
+ return "hello";
+ }
+}
diff --git a/src/main/resources/application-personal.properties b/src/main/resources/application-personal.properties
new file mode 100644
index 0000000000000000000000000000000000000000..d0db39e78df40be963988e81674c515248e257f6
--- /dev/null
+++ b/src/main/resources/application-personal.properties
@@ -0,0 +1,5 @@
+spring.datasource.url=jdbc:mysql:///mybatis?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
+spring.datasource.username=root
+spring.datasource.password=52118259541xx
+
+server.port=8080
\ No newline at end of file
diff --git a/src/main/resources/application-public.properties b/src/main/resources/application-public.properties
new file mode 100644
index 0000000000000000000000000000000000000000..a357278b2c947c5f558b7267049724b99ae916ba
--- /dev/null
+++ b/src/main/resources/application-public.properties
@@ -0,0 +1,5 @@
+spring.datasource.url=jdbc:mysql:///mybatis?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
+spring.datasource.username=
+spring.datasource.password=
+
+server.port=8080
\ No newline at end of file
diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties
index 8b137891791fe96927ad78e64b0aad7bded08bdc..e2cf528b17a916ce744591b7f2240855ae85381c 100644
--- a/src/main/resources/application.properties
+++ b/src/main/resources/application.properties
@@ -1 +1,4 @@
+spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
+spring.mvc.pathmatch.matching-strategy=ant_path_matcher
+spring.profiles.active=personal
diff --git a/src/main/resources/com/example/mapper/UserMapper.xml b/src/main/resources/com/example/mapper/UserMapper.xml
new file mode 100644
index 0000000000000000000000000000000000000000..542abc1fe5688c4d634ed3861a29b5dede2189f4
--- /dev/null
+++ b/src/main/resources/com/example/mapper/UserMapper.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
\ No newline at end of file