Here are the two ways to start a jfinal project:
1. Using the Jfinal framework Integrated Jetty server startup Project, Jfinal provides a startup method, example:
public static void Main (string[] args) {
Jfinal.start ("WebRoot", 8080, "/", 5);
}
2. Use containers such as Tomcat to start the Jfinal project, if you are using MyEclipse, and MyEclipse is configured with Tomcat, you can right-click the project directly-->run as, or you can directly put the project's compiled class project into Apache The Tomcat directory under the WebApps directory, and then the Tomcat is started, it's ready.
In both of these ways, there are some differences in their access paths:
1. Access to the Jfinal project launched with Jetty Server does not need to add the project name, example: Http://localhost:8080/user/test.
2. Jfinal project with Tomcat started with project name, otherwise path error, example: Http://localhost:8080/Test/user/test