How to Run Spring MVC in Weblogic server

9:07 PM Hendry 0 Comments

What you need to have


1. Eclipse IDE with Spring Tool Suite Installed
2. Spring MVC Project
3. weblogic.xml
4. Running Weblogic server

Create weblogic.xml


1. Right click on "WEB-INF" folder and select "New" > "Other"



2. Create "XML" file and name it as "weblogic.xml"



3. "weblogic.xml" is now created under "WEB-INF" folder


4. Copy below codes and paste into your weblogic.xml
<?xml version="1.0" encoding="UTF-8"?>
<weblogic-web-app xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app">
<context-root>CreateSpringMVC</context-root>
<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>
</weblogic-web-app>

5. Export project as WAR file, and install on your weblogic server