How to run jersey-server webservice server without using tomcat

前端 未结 3 1205
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-24 14:12

This is my first time dealing with web-services. Simply, I need to send a post request from jersey web service client (inside a webpage implemented in javascript) to a jerse

3条回答
  •  不知归路
    2020-12-24 14:57

    I can't comment the first answer. So I'm adding a comment here. If you choose to generate the project with the archetype, the command line should be

    mvn archetype:generate -DarchetypeArtifactId=jersey-quickstart-grizzly2 -DarchetypeGroupId=org.glassfish.jersey.archetypes -DinteractiveMode=false -DgroupId=com.underdog.jersey.grizzly -DartifactId=simple-service -Dpackage=com.underdog.jersey.grizzly -DarchetypeVersion=2.23.1
    

    And not the command line in the link. This will work with the pom provided by peeskillet

提交回复
热议问题