您的位置:首页 > 编程语言 > Java开发

Spring MVC on JBoss 7.1 final

2014-05-18 14:13 549 查看
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, ifyou
use "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!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息