Skip to content

Commit 89651d7

Browse files
committed
minor fix
1 parent 377c71e commit 89651d7

15 files changed

Lines changed: 10 additions & 276 deletions

File tree

‎spring-zuul/pom.xml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616
<modules>
1717
<module>spring-zuul-foos-resource</module>
18-
<module>spring-zuul-users-resource</module>
1918
<module>spring-zuul-ui</module>
2019
</modules>
2120

‎spring-zuul/spring-zuul-foos-resource/.project‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@
2121
</arguments>
2222
</buildCommand>
2323
<buildCommand>
24-
<name>org.eclipse.m2e.core.maven2Builder</name>
24+
<name>org.springframework.ide.eclipse.core.springbuilder</name>
2525
<arguments>
2626
</arguments>
2727
</buildCommand>
2828
<buildCommand>
29-
<name>org.springframework.ide.eclipse.core.springbuilder</name>
29+
<name>org.eclipse.wst.validation.validationbuilder</name>
3030
<arguments>
3131
</arguments>
3232
</buildCommand>
3333
<buildCommand>
34-
<name>org.eclipse.wst.validation.validationbuilder</name>
34+
<name>org.eclipse.m2e.core.maven2Builder</name>
3535
<arguments>
3636
</arguments>
3737
</buildCommand>

‎spring-zuul/spring-zuul-ui/.classpath‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,20 @@
1717
<attribute name="maven.pomderived" value="true"/>
1818
</attributes>
1919
</classpathentry>
20-
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
20+
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
2121
<attributes>
2222
<attribute name="maven.pomderived" value="true"/>
2323
</attributes>
2424
</classpathentry>
25-
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
25+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
2626
<attributes>
2727
<attribute name="maven.pomderived" value="true"/>
28-
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
2928
</attributes>
3029
</classpathentry>
31-
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
30+
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
3231
<attributes>
3332
<attribute name="maven.pomderived" value="true"/>
33+
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
3434
</attributes>
3535
</classpathentry>
3636
<classpathentry kind="output" path="target/classes"/>

‎spring-zuul/spring-zuul-ui/.project‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@
2121
</arguments>
2222
</buildCommand>
2323
<buildCommand>
24-
<name>org.springframework.ide.eclipse.core.springbuilder</name>
24+
<name>org.eclipse.m2e.core.maven2Builder</name>
2525
<arguments>
2626
</arguments>
2727
</buildCommand>
2828
<buildCommand>
29-
<name>org.eclipse.wst.validation.validationbuilder</name>
29+
<name>org.springframework.ide.eclipse.core.springbuilder</name>
3030
<arguments>
3131
</arguments>
3232
</buildCommand>
3333
<buildCommand>
34-
<name>org.eclipse.m2e.core.maven2Builder</name>
34+
<name>org.eclipse.wst.validation.validationbuilder</name>
3535
<arguments>
3636
</arguments>
3737
</buildCommand>

‎spring-zuul/spring-zuul-ui/src/main/resources/application.yml‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,3 @@ zuul:
33
foos:
44
path: /foos/**
55
url: http://localhost:8081/spring-zuul-foos-resource/foos
6-
users:
7-
path: /users/**
8-
url: http://localhost:8081/spring-zuul-users-resource/users
9-

‎spring-zuul/spring-zuul-ui/src/main/resources/templates/index.html‎

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,6 @@
3333
$scope.foo = $scope.foos.get({fooId:$scope.foo.id});
3434
}
3535

36-
$scope.user = {id:0 , username:"john", age:11};
37-
$scope.users = $resource("/users/:userId",{userId:'@id'});
38-
39-
$scope.getUser = function(){
40-
$scope.user = $scope.users.get({userId:$scope.user.id});
41-
}
42-
43-
44-
45-
46-
4736
});
4837
/*]]>*/
4938
</script>
@@ -63,27 +52,6 @@ <h1 class="col-sm-12">Foo Details</h1>
6352
<div class="col-sm-12">
6453
<a class="btn btn-default" href="#" ng-click="getFoo()">New Foo</a>
6554
</div>
66-
<br/><br/>
67-
68-
<h1 class="col-sm-12">User Details</h1>
69-
<div class="col-sm-12">
70-
<label class="col-sm-3">ID</label>
71-
<span>{{user.id}}</span>
72-
</div>
73-
74-
<div class="col-sm-12">
75-
<label class="col-sm-3">Username</label>
76-
<span>{{user.username}}</span>
77-
</div>
78-
79-
<div class="col-sm-12">
80-
<label class="col-sm-3">Age</label>
81-
<span>{{user.age}}</span>
82-
</div>
83-
84-
<div class="col-sm-12">
85-
<a class="btn btn-default" href="#" ng-click="getUser()">New User</a>
86-
</div>
8755

8856
</div>
8957
</body>

‎spring-zuul/spring-zuul-ui/src/test/java/org/baeldung/web/LiveTest.java‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,6 @@ public void whenSendRequestToFooResource_thenOK() {
1515
assertEquals(200, response.getStatusCode());
1616
}
1717

18-
@Test
19-
public void whenSendRequestToUserResource_thenHeaderAdded() {
20-
final Response response = RestAssured.get("http://localhost:8080/users/1");
21-
assertEquals(200, response.getStatusCode());
22-
}
23-
2418
@Test
2519
public void whenSendRequest_thenHeaderAdded() {
2620
final Response response = RestAssured.get("http://localhost:8080/foos/1");

‎spring-zuul/spring-zuul-users-resource/.classpath‎

Lines changed: 0 additions & 32 deletions
This file was deleted.

‎spring-zuul/spring-zuul-users-resource/.project‎

Lines changed: 0 additions & 48 deletions
This file was deleted.

‎spring-zuul/spring-zuul-users-resource/pom.xml‎

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)