Spring MVC on JBoss 7.1 final

来源:互联网 发布:网络棋牌代理犯法吗? 编辑:程序博客网 时间:2024/06/16 19:06

Spring MVC: Create simple Spring MVC in Eclipse and depoly on JBoss 7.1 


Thanks to: http://gkolpuc.blogspot.com/2013/04/spring-mvc-create-sample-project-with.html


Solution includes 2 steps:

1. Install STS eclipse plugin 

+ create a Spring project -> spring MVC project


2. In "Servers" tab, right click on blank -> new -> Server

+ "Download additional server adapters", find the one related to JBoss

+ "JBoss AS 7.1", you will see JBoss servers if above step successes

+ Right next to "Server runtime environment ..." , click "Add..."

+ "JRE", please select JRE 1.6+, don't use "Default JRE for JavaSE-1.6" if you have Java 1.7 instead of 1.6 for example. (You would get a deployment error, ifyouuse "Default JRE for JavaSE-1.6"

+ "Finish"

+ Select "runtime environment" that you added in previous step

+ "Next" -> "Next" + Application you want to deploy on JBoss Server -> "Finish" / "Finish"

Run JBoss server under "Servers" tab, open a browser then point to "localhost:8080/AppName"

* Show see a "Hello World" welcome page!


0 0
原创粉丝点击