spring cloud : spring cloud config - profile, remote git repo, native file

This commit is contained in:
haerong22
2021-09-29 22:47:52 +09:00
parent 858fdcbb1b
commit a1a290fbd0
4 changed files with 19 additions and 6 deletions

View File

@@ -2,4 +2,7 @@ spring:
cloud:
config:
uri: http://127.0.0.1:8888
name: ecommerce
name: ecommerce
profiles:
active: dev

View File

@@ -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]

View File

@@ -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());

View File

@@ -2,4 +2,6 @@ spring:
cloud:
config:
uri: http://127.0.0.1:8888
name: ecommerce
name: ecommerce
profiles:
active: dev