Skip to content

halfray/spring4-jetty9-embedded-nowebxml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jetty9 Spring4 Embedded NoWebXML Example

利用jetty9启动无web.xml配置的spring4最简单应用程序

Requirements

启动应用程序的方法

方法1

  1. mvn jetty:run

方法2

  1. mvn clean install exec:exec

方法3

  1. 通过jetty的 org.eclipse.jetty.xml.XmlConfiguration 执行jetty/jetty.xml文件

方法4

  1. 执行com.halfray.example.initializer.JettyWebContextServer类的main方法

方法5

  1. 执行com.halfray.example.initializer.JettyServletContextServer类的main方法

通过浏览器查看应用

http://localhost:8080/

About

用jetty9启动无web.xml 的 spring4 的5种方式

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages