diff --git a/boot-starter-security-app/.gitignore b/boot-starter-security-app/.gitignore
new file mode 100644
index 0000000..2af7cef
--- /dev/null
+++ b/boot-starter-security-app/.gitignore
@@ -0,0 +1,24 @@
+target/
+!.mvn/wrapper/maven-wrapper.jar
+
+### STS ###
+.apt_generated
+.classpath
+.factorypath
+.project
+.settings
+.springBeans
+
+### IntelliJ IDEA ###
+.idea
+*.iws
+*.iml
+*.ipr
+
+### NetBeans ###
+nbproject/private/
+build/
+nbbuild/
+dist/
+nbdist/
+.nb-gradle/
\ No newline at end of file
diff --git a/boot-starter-security-app/pom.xml b/boot-starter-security-app/pom.xml
new file mode 100644
index 0000000..d1a0ef8
--- /dev/null
+++ b/boot-starter-security-app/pom.xml
@@ -0,0 +1,47 @@
+
+
+ 4.0.0
+
+ boot-starter-security-app
+ jar
+
+ boot-starter-security-app
+ micro fast boot-starter-security-app
+
+
+ com.micro.fast
+ micro-fast
+ 0.0.1-SNAPSHOT
+
+
+
+
+ com.micro.fast
+ boot-starter-security-core
+ ${micro.fast.version}
+
+
+ org.springframework.boot
+ spring-boot-starter-test
+ test
+
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+
+
+ org.apache.maven.plugins
+ maven-javadoc-plugin
+
+
+
+
diff --git a/boot-starter-security-app/src/main/java/com/micro/fast/security/app/BootStarterSecurityAppApplication.java b/boot-starter-security-app/src/main/java/com/micro/fast/security/app/BootStarterSecurityAppApplication.java
new file mode 100644
index 0000000..f4853ef
--- /dev/null
+++ b/boot-starter-security-app/src/main/java/com/micro/fast/security/app/BootStarterSecurityAppApplication.java
@@ -0,0 +1,12 @@
+package com.micro.fast.security.app;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+@SpringBootApplication
+public class BootStarterSecurityAppApplication {
+
+ public static void main(String[] args) {
+ SpringApplication.run(BootStarterSecurityAppApplication.class, args);
+ }
+}
diff --git a/boot-starter-security-app/src/main/resources/application.properties b/boot-starter-security-app/src/main/resources/application.properties
new file mode 100644
index 0000000..e69de29
diff --git a/boot-starter-security-app/src/test/java/com/micro/fast/security/app/BootStarterSecurityAppApplicationTests.java b/boot-starter-security-app/src/test/java/com/micro/fast/security/app/BootStarterSecurityAppApplicationTests.java
new file mode 100644
index 0000000..e5a9939
--- /dev/null
+++ b/boot-starter-security-app/src/test/java/com/micro/fast/security/app/BootStarterSecurityAppApplicationTests.java
@@ -0,0 +1,16 @@
+package com.micro.fast.security.app;
+
+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 BootStarterSecurityAppApplicationTests {
+
+ @Test
+ public void contextLoads() {
+ }
+
+}
diff --git a/boot-starter-security-browser/.gitignore b/boot-starter-security-browser/.gitignore
new file mode 100644
index 0000000..2af7cef
--- /dev/null
+++ b/boot-starter-security-browser/.gitignore
@@ -0,0 +1,24 @@
+target/
+!.mvn/wrapper/maven-wrapper.jar
+
+### STS ###
+.apt_generated
+.classpath
+.factorypath
+.project
+.settings
+.springBeans
+
+### IntelliJ IDEA ###
+.idea
+*.iws
+*.iml
+*.ipr
+
+### NetBeans ###
+nbproject/private/
+build/
+nbbuild/
+dist/
+nbdist/
+.nb-gradle/
\ No newline at end of file
diff --git a/boot-starter-security-browser/pom.xml b/boot-starter-security-browser/pom.xml
new file mode 100644
index 0000000..0d8260a
--- /dev/null
+++ b/boot-starter-security-browser/pom.xml
@@ -0,0 +1,52 @@
+
+
+ 4.0.0
+
+ boot-starter-security-browser
+ jar
+
+ boot-tstarter-security-browser
+ micro fast boot-tstarter-security-broswer
+
+
+ com.micro.fast
+ micro-fast
+ 0.0.1-SNAPSHOT
+
+
+
+
+ com.micro.fast
+ boot-starter-security-core
+ ${micro.fast.version}
+
+
+ org.springframework.session
+ spring-session
+
+
+ org.springframework.boot
+ spring-boot-starter-test
+ test
+
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+
+
+ org.apache.maven.plugins
+ maven-javadoc-plugin
+
+
+
+
+
diff --git a/boot-starter-security-browser/src/main/java/com/micro/fast/security/browser/BootTstarterSecurityBrowserApplication.java b/boot-starter-security-browser/src/main/java/com/micro/fast/security/browser/BootTstarterSecurityBrowserApplication.java
new file mode 100644
index 0000000..7550e27
--- /dev/null
+++ b/boot-starter-security-browser/src/main/java/com/micro/fast/security/browser/BootTstarterSecurityBrowserApplication.java
@@ -0,0 +1,12 @@
+package com.micro.fast.security.browser;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+@SpringBootApplication
+public class BootTstarterSecurityBrowserApplication {
+
+ public static void main(String[] args) {
+ SpringApplication.run(BootTstarterSecurityBrowserApplication.class, args);
+ }
+}
diff --git a/boot-starter-security-browser/src/main/resources/application.properties b/boot-starter-security-browser/src/main/resources/application.properties
new file mode 100644
index 0000000..e69de29
diff --git a/boot-starter-security-browser/src/test/java/com/micro/fast/security/browser/BootTstarterSecurityBrowserApplicationTests.java b/boot-starter-security-browser/src/test/java/com/micro/fast/security/browser/BootTstarterSecurityBrowserApplicationTests.java
new file mode 100644
index 0000000..04f107b
--- /dev/null
+++ b/boot-starter-security-browser/src/test/java/com/micro/fast/security/browser/BootTstarterSecurityBrowserApplicationTests.java
@@ -0,0 +1,16 @@
+package com.micro.fast.security.browser;
+
+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 BootTstarterSecurityBrowserApplicationTests {
+
+ @Test
+ public void contextLoads() {
+ }
+
+}
diff --git a/boot-starter-security-core/.gitignore b/boot-starter-security-core/.gitignore
new file mode 100644
index 0000000..2af7cef
--- /dev/null
+++ b/boot-starter-security-core/.gitignore
@@ -0,0 +1,24 @@
+target/
+!.mvn/wrapper/maven-wrapper.jar
+
+### STS ###
+.apt_generated
+.classpath
+.factorypath
+.project
+.settings
+.springBeans
+
+### IntelliJ IDEA ###
+.idea
+*.iws
+*.iml
+*.ipr
+
+### NetBeans ###
+nbproject/private/
+build/
+nbbuild/
+dist/
+nbdist/
+.nb-gradle/
\ No newline at end of file
diff --git a/boot-starter-security-core/pom.xml b/boot-starter-security-core/pom.xml
new file mode 100644
index 0000000..d04d454
--- /dev/null
+++ b/boot-starter-security-core/pom.xml
@@ -0,0 +1,85 @@
+
+
+ 4.0.0
+
+ boot-starter-security-core
+ jar
+
+ boot-starter-security-core
+ micro fast security-core
+
+
+ com.micro.fast
+ micro-fast
+ 0.0.1-SNAPSHOT
+
+
+
+
+ org.springframework.cloud
+ spring-cloud-starter-oauth2
+
+
+ org.springframework.boot
+ spring-boot-starter-data-redis
+
+
+ org.springframework.boot
+ spring-boot-starter-jdbc
+
+
+ mysql
+ mysql-connector-java
+
+
+ org.springframework.social
+ spring-social-config
+
+
+ org.springframework.social
+ spring-social-core
+
+
+ org.springframework.social
+ spring-social-security
+
+
+ org.springframework.social
+ spring-social-web
+
+
+ commons-lang
+ commons-lang
+
+
+ commons-collections
+ commons-collections
+
+
+ commons-beanutils
+ commons-beanutils
+
+
+ org.springframework.boot
+ spring-boot-configuration-processor
+
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+
+
+ org.apache.maven.plugins
+ maven-javadoc-plugin
+
+
+
+
diff --git a/boot-starter-security-core/src/main/java/com/micro/fast/security/core/BootStarterSecurityCoreApplication.java b/boot-starter-security-core/src/main/java/com/micro/fast/security/core/BootStarterSecurityCoreApplication.java
new file mode 100644
index 0000000..6ee3780
--- /dev/null
+++ b/boot-starter-security-core/src/main/java/com/micro/fast/security/core/BootStarterSecurityCoreApplication.java
@@ -0,0 +1,12 @@
+package com.micro.fast.security.core;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+@SpringBootApplication
+public class BootStarterSecurityCoreApplication {
+
+ public static void main(String[] args) {
+ SpringApplication.run(BootStarterSecurityCoreApplication.class, args);
+ }
+}
diff --git a/boot-starter-security-core/src/main/resources/application.properties b/boot-starter-security-core/src/main/resources/application.properties
new file mode 100644
index 0000000..e69de29
diff --git a/boot-starter-security-core/src/test/java/com/micro/fast/security/core/BootStarterSecurityCoreApplicationTests.java b/boot-starter-security-core/src/test/java/com/micro/fast/security/core/BootStarterSecurityCoreApplicationTests.java
new file mode 100644
index 0000000..3988adb
--- /dev/null
+++ b/boot-starter-security-core/src/test/java/com/micro/fast/security/core/BootStarterSecurityCoreApplicationTests.java
@@ -0,0 +1,16 @@
+package com.micro.fast.security.core;
+
+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 BootStarterSecurityCoreApplicationTests {
+
+ @Test
+ public void contextLoads() {
+ }
+
+}
diff --git a/cms/src/main/java/com/micro/fast/cms/CmsApplication.java b/cms/src/main/java/com/micro/fast/cms/CmsApplication.java
index c7b8456..e3d1dc4 100644
--- a/cms/src/main/java/com/micro/fast/cms/CmsApplication.java
+++ b/cms/src/main/java/com/micro/fast/cms/CmsApplication.java
@@ -2,7 +2,9 @@ package com.micro.fast.cms;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
@@ -13,6 +15,7 @@ import org.springframework.http.ResponseEntity;
@SpringCloudApplication
@EnableFeignClients
@MapperScan(basePackages = {"com.micro.fast.cms.dao"})
+@EnableAutoConfiguration(exclude = DataSourceAutoConfiguration.class)
public class CmsApplication {
public static void main(String[] args) {
SpringApplication.run(CmsApplication.class, args);
diff --git a/common/src/main/java/com/micro/fast/common/config/DynamicDataSourceConfig.java b/common/src/main/java/com/micro/fast/common/config/DynamicDataSourceConfig.java
index 4ef3e15..63a369d 100644
--- a/common/src/main/java/com/micro/fast/common/config/DynamicDataSourceConfig.java
+++ b/common/src/main/java/com/micro/fast/common/config/DynamicDataSourceConfig.java
@@ -6,6 +6,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.autoconfigure.AutoConfigureBefore;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
+import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;
diff --git a/eureka-server/pom.xml b/eureka-server/pom.xml
index 2b784ed..e6ed688 100644
--- a/eureka-server/pom.xml
+++ b/eureka-server/pom.xml
@@ -36,6 +36,11 @@
org.springframework.boot
spring-boot-starter-actuator
+
+
+ org.springframework.boot
+ spring-boot-starter-security
+
org.springframework.boot
diff --git a/eureka-server2/pom.xml b/eureka-server2/pom.xml
index dc8a082..c69b704 100644
--- a/eureka-server2/pom.xml
+++ b/eureka-server2/pom.xml
@@ -36,6 +36,11 @@
org.springframework.boot
spring-boot-starter-actuator
+
+
+ org.springframework.boot
+ spring-boot-starter-security
+
org.springframework.boot
diff --git a/ucenter/src/main/java/com/micro/fast/ucenter/UcenterApplication.java b/ucenter/src/main/java/com/micro/fast/ucenter/UcenterApplication.java
index 7a85b24..2885a9a 100644
--- a/ucenter/src/main/java/com/micro/fast/ucenter/UcenterApplication.java
+++ b/ucenter/src/main/java/com/micro/fast/ucenter/UcenterApplication.java
@@ -2,12 +2,15 @@ package com.micro.fast.ucenter;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
+import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
@SpringCloudApplication
@EnableFeignClients
@MapperScan(basePackages = {"com.micro.fast.ucenter.dao"})
+@EnableAutoConfiguration(exclude = DataSourceAutoConfiguration.class)
public class UcenterApplication {
public static void main(String[] args) {