spring cloud : spring cloud config - profile, remote git repo, native file
This commit is contained in:
@@ -2,4 +2,7 @@ spring:
|
||||
cloud:
|
||||
config:
|
||||
uri: http://127.0.0.1:8888
|
||||
name: ecommerce
|
||||
name: ecommerce
|
||||
|
||||
profiles:
|
||||
active: dev
|
||||
@@ -4,10 +4,17 @@ server:
|
||||
spring:
|
||||
application:
|
||||
name: config-server
|
||||
|
||||
# profile:
|
||||
# active: native
|
||||
cloud:
|
||||
config:
|
||||
server:
|
||||
# native:
|
||||
# search-locations: file:///${user.homr}/Desktop/study/native
|
||||
# search-locations: file://${user.home}/Desktop/kim/study/native
|
||||
git:
|
||||
# uri: file://C:/Users/Woojin/Desktop/study/config
|
||||
uri: file:///Users/bobby/Desktop/kim/study/config
|
||||
uri: file://C:/Users/Woojin/Desktop/study/config
|
||||
# uri: file:///Users/bobby/Desktop/kim/study/config
|
||||
# uri: [github_uri]
|
||||
# username: [your username]
|
||||
# password: [your password]
|
||||
@@ -33,7 +33,8 @@ public class WebSecurity extends WebSecurityConfigurerAdapter {
|
||||
http.authorizeRequests().antMatchers("/users/**").permitAll();
|
||||
http.authorizeRequests().antMatchers("/actuator/**").permitAll();
|
||||
http.authorizeRequests().antMatchers("/**")
|
||||
.hasIpAddress("192.168.219.178")
|
||||
.permitAll()
|
||||
// .hasIpAddress("192.168.219.178")
|
||||
.and()
|
||||
.addFilter(getAuthenticationFilter());
|
||||
|
||||
|
||||
@@ -2,4 +2,6 @@ spring:
|
||||
cloud:
|
||||
config:
|
||||
uri: http://127.0.0.1:8888
|
||||
name: ecommerce
|
||||
name: ecommerce
|
||||
profiles:
|
||||
active: dev
|
||||
Reference in New Issue
Block a user