Skip to content

Commit 6d4c879

Browse files
author
gm2552
committed
Removing old web.xml and spring xml files.
Adding default config service url and security credentials. Updating to Greenwich.M2
1 parent d8c5773 commit 6d4c879

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
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>

src/main/java/org/nhind/xdm/springconfig/CXFWSServiceConfig.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
import org.springframework.beans.factory.annotation.Autowired;
1010
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
1111
import org.springframework.context.annotation.Bean;
12+
import org.springframework.context.annotation.Configuration;
1213

14+
@Configuration
1315
public class CXFWSServiceConfig
1416
{
1517
@Autowired

src/main/java/org/nhind/xdm/springconfig/WebSecurityConfiguration.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
11
spring.application.name=direct-xd
22
spring.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.
66
eureka.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
913
management.health.rabbit.enabled=false
1014

1115
spring.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

0 commit comments

Comments
 (0)