Skip to content

Commit 807b3c3

Browse files
netflix zuul api gateway
1 parent cd0664b commit 807b3c3

File tree

5 files changed

+35
-6
lines changed

5 files changed

+35
-6
lines changed

report/src/main/java/com/microservices/report/controllers/ReportRestController.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@
55
import org.springframework.beans.factory.annotation.Autowired;
66
import org.springframework.web.bind.annotation.GetMapping;
77
import org.springframework.web.bind.annotation.PathVariable;
8-
import org.springframework.web.bind.annotation.RequestMapping;
98
import org.springframework.web.bind.annotation.RestController;
109

1110
import com.microservices.report.repositories.FeignRepository;
1211

13-
@RequestMapping("report")
1412
@RestController
1513
public class ReportRestController {
1614

report/src/main/java/com/microservices/report/repositories/FeignRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import org.springframework.web.bind.annotation.GetMapping;
88
import org.springframework.web.bind.annotation.PathVariable;
99

10-
@FeignClient(name = "faculty")
10+
@FeignClient(name="faculty")
1111
@RibbonClient(name="faculty")
1212
public interface FeignRepository {
1313

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<launchConfiguration type="org.springframework.ide.eclipse.boot.launch">
3+
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
4+
<listEntry value="/zuul/src/main/java/com/microservices/zuul/ZuulApplication.java"/>
5+
</listAttribute>
6+
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
7+
<listEntry value="1"/>
8+
</listAttribute>
9+
<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.springframework.ide.eclipse.boot.launch.BootMavenClassPathProvider"/>
10+
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="com.microservices.zuul.ZuulApplication"/>
11+
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="zuul"/>
12+
<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.springframework.ide.eclipse.boot.launch.BootMavenSourcePathProvider"/>
13+
<stringAttribute key="process_factory_id" value="org.springframework.ide.eclipse.boot.launch.process.BootProcessFactory"/>
14+
<booleanAttribute key="spring.boot.ansi.console" value="true"/>
15+
<stringAttribute key="spring.boot.app.properties" value=""/>
16+
<booleanAttribute key="spring.boot.dash.hidden" value="false"/>
17+
<booleanAttribute key="spring.boot.debug.enable" value="false"/>
18+
<booleanAttribute key="spring.boot.fast.startup" value="true"/>
19+
<booleanAttribute key="spring.boot.jmx.enable" value="true"/>
20+
<booleanAttribute key="spring.boot.lifecycle.enable" value="true"/>
21+
<stringAttribute key="spring.boot.lifecycle.termination.timeout" value="15000"/>
22+
<booleanAttribute key="spring.boot.livebean.enable" value="false"/>
23+
<stringAttribute key="spring.boot.livebean.port" value="0"/>
24+
<stringAttribute key="spring.boot.profile" value=""/>
25+
</launchConfiguration>

spring-cloud-config/pom.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@
5656
<groupId>org.springframework.boot</groupId>
5757
<artifactId>spring-boot-maven-plugin</artifactId>
5858
<configuration>
59-
<excludes>
60-
<exclude>launch/*.launch</exclude>
61-
</excludes>
6259
</configuration>
6360
</plugin>
6461
</plugins>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
eureka:
2+
client:
3+
service-url:
4+
default-zone: http://localhost:8761/eureka
5+
server:
6+
port: 8765
7+
spring:
8+
application:
9+
name: zuul

0 commit comments

Comments
 (0)