What are some Java web app "bootstrap" or "kickstart" projects?
-
Java web application templates with a selected set of components that can be used as a base for actual projects. Or, "app skeleton" generators. Either Web UI, or Web Services.
-
Answer:
The Maven web archetype can be used to build you a simple web app project structure. Once you have Maven installed (e.g. put a reference to it on your path) you can issue a command along the lines of the this: mvn archetype:generate -DgroupId={project-packaging} -DartifactId={project-name} -DarchetypeArtifactId=maven-archetype-webapp -DinteractiveMode=false That will form for you a basic project structure according to the standard servlet requirements. You can then use Maven to package the project into a war which you can put into your container or application server. (For added complexity you can configure your project and use Maven to deploy to tomcat for you). Mkyong has a full example here: http://www.mkyong.com/maven/how-to-create-a-web-application-project-with-maven/
Philip Crow at Quora Visit the source
Other answers
GWizard is a lightweight toolkit for building web services using Guice: https://github.com/gwizard/gwizard There's no need for code generation; GWizard programs run as a simple main method making them easy to deploy. Here is a complete web service using the Java standard JAX-RS API: import com.google.inject.AbstractModule; import com.google.inject.Guice; import org.gwizard.rest.RestModule; import org.gwizard.services.Run; import javax.ws.rs.GET; import javax.ws.rs.Path; public class Main { /** A standard JAX-RS resource class */ @Path("/hello") public static class HelloResource { @GET public String hello() { return "hello, world"; } } public static class MyModule extends AbstractModule { @Override protected void configure() { bind(HelloResource.class); } } public static void main(String[] args) throws Exception { Guice.createInjector(new MyModule(), new RestModule()) .getInstance(Run.class) .start(); } } There are quite a few additional features which you can optionally include.
Jeff Schnitzer
Related Q & A:
- How To Test Your Own Iphone Web App On Your Iphone?Best solution by Stack Overflow
- How can I restore Sharepoint web app when the DB is in another server?Best solution by SharePoint
- What is excatly the role of multipurpose river valley projects?Best solution by Yahoo! Answers
- What is the best "emoji" app for the iPhone?Best solution by Yahoo! Answers
- What's a good lyrics app for the iPhone?Best solution by Quora
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.