Skip to content

Commit 30a65f4

Browse files
committed
cleaned up changes and removed paths for calc and gmaps
1 parent c352a11 commit 30a65f4

File tree

3 files changed

+13
-15
lines changed

3 files changed

+13
-15
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ dependencies {
4545
compile('org.springframework.security:spring-security-test')
4646
compile('org.springframework.cloud:spring-cloud-starter-eureka')
4747
compile('org.springframework.cloud:spring-cloud-starter-hystrix')
48-
//compile('org.springframework.cloud:spring-cloud-starter-oauth2')
48+
compile('org.springframework.cloud:spring-cloud-starter-oauth2')
4949
compile('org.springframework.cloud:spring-cloud-starter-zuul')
5050
compile('org.springframework.boot:spring-boot-starter-web')
5151
providedRuntime('org.springframework.boot:spring-boot-starter-tomcat')

src/main/java/aist/edge/edgeservice/EdgeServiceApplication.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
66
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
77
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
8-
//import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;
8+
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;
99

1010
@SpringBootApplication
1111
@EnableEurekaClient
1212
@EnableZuulProxy
13-
//@EnableResourceServer
13+
@EnableResourceServer
1414
@EnableHystrix
1515
public class EdgeServiceApplication {
1616
public static void main(String[] args) {

src/main/resources/application.yml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
spring:
22
profiles:
3-
active: docker
3+
active: development
44
---
55
spring:
66
profiles: development
77
application:
8-
name: edge-service
8+
name: edgeservice
99
zuul:
10-
ignored-services: '*'
11-
ignoredPatterns: /**/api/**
10+
prefix: /api
1211
routes:
13-
example-service: /example/**
12+
trip-cmd:
13+
path: /trip/cmd/**
14+
url: http://tripmanagementcmd:8080/api
15+
trip-query:
16+
path: /trip/query/**
17+
url: http://tripmanagementquery:8080/api
1418
security:
1519
oauth2:
1620
resource:
@@ -29,7 +33,7 @@ eureka:
2933
spring:
3034
profiles: docker
3135
application:
32-
name: edge-service
36+
name: edgeservice
3337
zuul:
3438
prefix: /api
3539
routes:
@@ -39,12 +43,6 @@ zuul:
3943
trip-query:
4044
path: /trip/query/**
4145
url: http://tripmanagementquery:8080/api
42-
gmaps:
43-
path: /gmaps/**
44-
url: http://gmapsadapter:8080/api
45-
calculation:
46-
path: /calculation/service/**
47-
url: http://calculationservice:8080/api
4846
security:
4947
oauth2:
5048
resource:

0 commit comments

Comments
 (0)