File tree Expand file tree Collapse file tree 4 files changed +16
-2
lines changed
java/org/nhind/xdm/springconfig Expand file tree Collapse file tree 4 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 7575 <dependency >
7676 <groupId >org.springframework.cloud</groupId >
7777 <artifactId >spring-cloud-starter-parent</artifactId >
78- <version >Greenwich.M1 </version >
78+ <version >Greenwich.M2 </version >
7979 <type >pom</type >
8080 <scope >import</scope >
8181 </dependency >
Original file line number Diff line number Diff line change 99import org .springframework .beans .factory .annotation .Autowired ;
1010import org .springframework .boot .autoconfigure .condition .ConditionalOnMissingBean ;
1111import org .springframework .context .annotation .Bean ;
12+ import org .springframework .context .annotation .Configuration ;
1213
14+ @ Configuration
1315public class CXFWSServiceConfig
1416{
1517 @ Autowired
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ public void configure(WebSecurity web) throws Exception
2020 protected void configure (HttpSecurity http ) throws Exception
2121 {
2222 http .authorizeRequests ().antMatchers ("/" ).permitAll ();
23+
24+ http .csrf ().disable ();
2325 }
2426}
2527
Original file line number Diff line number Diff line change 11spring.application.name =direct-xd
22spring.jpa.open_in_view =false
33
4- # Disable eureka client. Set this to true and set eureka client properties to
4+ # Disable eureka client and set the direct.config.service.url . Set this to true and set eureka client properties to
55# connect to eureka.
66eureka.client.enabled =false
77
8+ # If not using Eureka, then set the config-service URL. This should be set to a empty value
9+ # if you are using Eureka
10+ direct.config.service.url =http://localhost:8080/config-service
11+
812# Don't use rabbit as part of the health check
913management.health.rabbit.enabled =false
1014
1115spring.main.allow-bean-definition-overriding =true
16+
17+ # unique jmx names to avoid collisions when running
18+ # multiple spring boot apps in an web container
19+ endpoints.jmx.default-domain =direct-xd
20+ endpoints.jmx.uniqueNames =true
21+ spring.jmx.default-domain =direct-xd
You can’t perform that action at this time.
0 commit comments