| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This open source integration demonstrates Spring and Spring MVC integration through a simple phonebook sample Web application deployed to Liberty.
This sample demonstrates Spring and Spring MVC integration through a simple phonebook Web application deployed to Liberty.
This sample can be installed onto runtime versions 8.5.5.0 and later.
This project can be built with Apache Maven. The project uses Liberty Maven Plug-in to automatically download and install the Liberty Java EE 7 Full Platform runtime from Maven Central. Liberty Maven Plug-in is also used to create, configure, and run the application on the Liberty server.
Use the following steps to run the application with Maven:
Execute the full Maven build. The Liberty Maven Plug-in will download and install the Liberty runtime and create the server.
$ mvn clean installTo run the server with the Spring application execute:
$ mvn liberty:run-serverThis project can be built with Gradle. The project uses Liberty Gradle Plug-in to automatically download and install Liberty with Java EE 7 Full Platform runtime from Maven Central. Liberty Gradle Plug-in is also used to create, configure, and run the application on the Liberty server.
Use the following steps to run the application with Gradle:
Execute full Gradle build. This will cause Liberty Gradle Plug-in to download and install Liberty profile server.
$ gradle clean buildTo run the server with the Spring application execute:
$ gradle libertyStartTo stop the server with the Spring application execute:
$ gradle libertyStopIn your browser, enter the URL for the application: http://localhost:9811/sample.spring/ (where port 9811 assumes the httpEndpoint provided in the sample server.xml has not been modified). In your browser, you should see the phone book displayed.
© Copyright IBM Corporation 2017.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
| Back | FazBrowse Home | New Git URL |