♻️ 重构代码

This commit is contained in:
冷冷 committed 2018-07-25 09:58:08 +08:00
1 parent a9b9b5478e
commit a0a874be9c
4 files changed
+10 -4

No files matched your search

@@ -32,7 +32,7 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
protected void configure(HttpSecurity http) throws Exception {
http.csrf().disable()
.authorizeRequests()
.antMatchers("actuator/**").permitAll()
.antMatchers("/actuator/**").permitAll()
.anyRequest()
.authenticated().and().httpBasic();
}
@@ -8,6 +8,12 @@ spring:
password: pig
application:
name: pigx-eureka
boot:
admin:
client:
url: http://localhost:5001
instance:
name: PIGX-EUREKA
# docker-compose部署时候 hostname 换成pigx-eureka
# 类似的 redis 使用pigx-redis ,gateway 换成 pigx-gateway