diff --git a/ms/oauth/pom.xml b/ms/oauth/pom.xml
new file mode 100644
index 0000000..bf36da0
--- /dev/null
+++ b/ms/oauth/pom.xml
@@ -0,0 +1,96 @@
+
+
+ 4.0.0
+
+ oauth
+ jar
+
+ ms-oauth
+ ms-oauth
+
+
+ com.micro.fast
+ ms
+ 0.0.1-SNAPSHOT
+
+
+
+
+
+ com.micro.fast
+ boot-starter-security-app
+ ${micro.fast.version}
+
+
+
+ org.springframework.boot
+ spring-boot-starter-actuator
+
+
+
+ org.springframework.cloud
+ spring-cloud-starter-config
+
+
+
+ org.springframework.cloud
+ spring-cloud-starter-eureka
+
+
+ org.springframework.cloud
+ spring-cloud-starter-ribbon
+
+
+ org.springframework.cloud
+ spring-cloud-starter-feign
+
+
+ org.springframework.cloud
+ spring-cloud-starter-hystrix
+
+
+
+ org.springframework.boot
+ spring-boot-starter-test
+ test
+
+
+ org.projectlombok
+ lombok
+
+
+
+
+
+
+ com.micro.fast
+ mybatis-generator-extend-maven-plugin
+ ${micro.fast.version}
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+
+
+ org.mybatis.generator
+ mybatis-generator-maven-plugin
+
+
+ true
+ false
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+
+
+ com.spotify
+ docker-maven-plugin
+
+
+ ms-oauth
+
+
diff --git a/ms/oauth/src/main/java/com/micro/fast/oauth/OauthApplication.java b/ms/oauth/src/main/java/com/micro/fast/oauth/OauthApplication.java
new file mode 100644
index 0000000..4161ac5
--- /dev/null
+++ b/ms/oauth/src/main/java/com/micro/fast/oauth/OauthApplication.java
@@ -0,0 +1,19 @@
+package com.micro.fast.oauth;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.cloud.client.SpringCloudApplication;
+import org.springframework.cloud.netflix.feign.EnableFeignClients;
+
+/**
+ * 前台用户认证中心
+ * @author lsy
+ */
+@SpringCloudApplication
+@EnableFeignClients
+public class OauthApplication {
+
+ public static void main(String[] args) {
+ SpringApplication.run(OauthApplication.class, args);
+ }
+}
diff --git a/ms/oauth/src/main/resources/application.properties b/ms/oauth/src/main/resources/application.properties
new file mode 100644
index 0000000..e69de29
diff --git a/ms/oauth/src/main/resources/bootstrap.yml b/ms/oauth/src/main/resources/bootstrap.yml
new file mode 100644
index 0000000..6eabc8d
--- /dev/null
+++ b/ms/oauth/src/main/resources/bootstrap.yml
@@ -0,0 +1,25 @@
+# 从配置中心加载文件
+spring:
+ session:
+ store-type: none
+ cloud:
+ config:
+ profile: dev
+ label: master
+ name: oauth
+ discovery:
+ service-id: config-server
+ enabled: true
+ username: config
+ password: server
+ datasource:
+ data-username:
+ data-password:
+ aop:
+ proxy-target-class: true
+eureka:
+ client:
+ serviceUrl:
+ defaultZone: http://micro:fast@www.register1.com:10002/eureka/,http://micro:fast@www.register2.com:10004/eureka/ #配置所有的注册中心
+ instance:
+ hostname: www.oauth.com
diff --git a/ms/oauth/src/test/java/com/micro/fast/oauth/OauthApplicationTests.java b/ms/oauth/src/test/java/com/micro/fast/oauth/OauthApplicationTests.java
new file mode 100644
index 0000000..f9935b3
--- /dev/null
+++ b/ms/oauth/src/test/java/com/micro/fast/oauth/OauthApplicationTests.java
@@ -0,0 +1,16 @@
+package com.micro.fast.oauth;
+
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.context.junit4.SpringRunner;
+
+@RunWith(SpringRunner.class)
+@SpringBootTest
+public class OauthApplicationTests {
+
+ @Test
+ public void contextLoads() {
+ }
+
+}
diff --git a/ms/pom.xml b/ms/pom.xml
index 50449c3..978ea8a 100644
--- a/ms/pom.xml
+++ b/ms/pom.xml
@@ -26,6 +26,7 @@
config-server
register-center1
register-center2
+ oauth
gateway
upms
cms
diff --git a/ms/upms/pom.xml b/ms/upms/pom.xml
index 23a26c3..f5a6586 100644
--- a/ms/upms/pom.xml
+++ b/ms/upms/pom.xml
@@ -22,11 +22,6 @@
boot-starter-ssm
${micro.fast.version}
-
- com.micro.fast
- boot-starter-security-browser
- ${micro.fast.version}
-
org.springframework.boot
diff --git a/ms/upms/src/main/java/com/micro/fast/upms/UpmsApplication.java b/ms/upms/src/main/java/com/micro/fast/upms/UpmsApplication.java
index 7364902..e586d36 100644
--- a/ms/upms/src/main/java/com/micro/fast/upms/UpmsApplication.java
+++ b/ms/upms/src/main/java/com/micro/fast/upms/UpmsApplication.java
@@ -7,6 +7,9 @@ import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
+/**
+ * @author lsy
+ */
@SpringCloudApplication
@EnableFeignClients
@MapperScan(basePackages = {"com.micro.fast.upms.dao"})