Skip to content
This repository was archived by the owner on Jun 2, 2023. It is now read-only.

Commit 9732f31

Browse files
authored
Merge pull request #173 from paulben/paulben1
Change Spring comments from MVC to REST
2 parents 253b194 + 16ee17d commit 9732f31

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ Inside the project there is a application.servlet package containing the <code>L
2121

2222
For the complete feature documentation, see the [servlet-3.1](http://www.ibm.com/support/knowledgecenter/en/SSEQTP_liberty/com.ibm.websphere.wlp.nd.multiplatform.doc/ae/rwlp_feature_servlet-3.1.html) feature description in IBM Knowledge Center.
2323

24-
## Spring Boot with Spring MVC
24+
## Spring Boot with Spring REST
2525
This provides you with a SpringBoot application that will run on WebSphere Liberty.
2626

2727
Inside the project there is a application.springboot.web package containing two classes:
2828
* SpringBootLibertyApplication</code>: The entry point for the SpringBoot application.
29-
* LibertyHelloController</code>: A Spring MVC endpoint which you can access at /springbootweb.
29+
* LibertyHelloController</code>: A Spring REST endpoint which you can access at /springbootweb.
3030

31-
There is also a test class named <code>it.springboot.web.HelloControllerTest</code> that will test the Spring MVC endpoint to ensure it is working.
31+
There is also a test class named <code>it.springboot.web.HelloControllerTest</code> that will test the Spring REST endpoint to ensure it is working.
3232

3333
## Websockets
3434
This provides you with the websocket-1.1 feature.

starter-microservice-springboot-web/src/main/webapp/WEB-INF/classes/description.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
limitations under the License.
1515
-->
1616
<div>
17-
<h2>Spring Boot with Spring MVC</h2>
17+
<h2>Spring Boot with Spring REST</h2>
1818
<p>Inside the project there is a application.springboot.web package
1919
containing two classes:</p>
2020
<ul>
2121
<li><code>SpringBootLibertyApplication</code>: The entry point for the SpringBoot application.</li>
22-
<li><code>LibertyHelloController</code>: A Spring MVC endpoint which you can access at <a href="springbootweb">/springbootweb</a></li>
22+
<li><code>LibertyHelloController</code>: A Spring REST endpoint which you can access at <a href="springbootweb">/springbootweb</a></li>
2323
</ul>
24-
<p>There is also a test class named <code>it.springboot.web.HelloControllerTest</code> that will test the Spring MVC endpoint to ensure it is working.</p>
24+
<p>There is also a test class named <code>it.springboot.web.HelloControllerTest</code> that will test the Spring REST endpoint to ensure it is working.</p>
2525
</div>

starter-microservice-springboot-web/src/main/webapp/sample/src/main/java/application/springboot/web/LibertyHelloController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public class LibertyHelloController {
2323

2424
@RequestMapping("/springbootweb")
2525
public String hello() {
26-
return "Hello from Spring Boot MVC running on Liberty!";
26+
return "Hello from Spring Boot REST running on Liberty!";
2727
}
2828

29-
}
29+
}

starter-microservice-springboot-web/src/main/webapp/sample/src/test/java/it/springboot/web/HelloControllerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ public class HelloControllerTest extends EndpointTest {
2424

2525
@Test
2626
public void testDeployment() {
27-
testEndpoint("/springbootweb", "Hello from Spring Boot MVC running on Liberty!");
27+
testEndpoint("/springbootweb", "Hello from Spring Boot REST running on Liberty!");
2828
}
29-
}
29+
}

starter-microservice-springboot-web/src/test/java/com/ibm/liberty/starter/service/springboot/api/v1/it/TestApplication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public void checkSetup() {
4040
public void testProvider() throws Exception {
4141
Provider provider = testEndpoint("/api/v1/provider/", Provider.class);
4242
assertNotNull("No response from API for provider", provider);
43-
assertTrue("Description was not found.", provider.getDescription().contains("<h2>Spring Boot with Spring MVC</h2>"));
43+
assertTrue("Description was not found.", provider.getDescription().contains("<h2>Spring Boot with Spring REST</h2>"));
4444
Dependency[] dependencies = provider.getDependencies();
4545
boolean providedDependency = false;
4646
boolean runtimeDependency = false;

0 commit comments

Comments
 (0)