Learn AppFuse and appfuse
1. What is Appfuse?
AppFuse is a high-level Web development framework that integrates the most popular Web application frameworks. In other words, AppFuse is a complete integrated version of mainstream frameworks. AppFuse always follows the mainstream java technical framework.
2. environment requirements for using AppFuse
JDK1.7 +
MySQL5.5 +
Maven3.2 +
3. Start helloworld
Use maven to create a project. The front-end technology I chose is springMVC. AppFuse can be integrated with several front-end technologies, including GWT, JSF, springMVC, struts2, and wicket. You can choose either of them.
Run the following command:
mvn archetype:generate -B -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-modular-spring-archetype -DarchetypeVersion=3.5.0 -DgroupId=com.qyf404 -DartifactId=stock -DarchetypeRepository=https://oss.sonatype.org/content/repositories/appfuse
After the project is created, there will be a set of permissions by default, and you can directly execute the maven command for compilation and packaging.
mvn install
Packaging will encounter a pitfall, that is, you need to configure mysql first. I installed a mysql on the local machine and the root password is blank. Finally, don't forget to put the mysql-connector-java.jar in tomcat's lib.
Well, if everything is normal, you can put the war package in tomcat and run it.
Finally, let's look at the localization effect.
4. References
- Http://www.appfuse.org/display/APF/AppFuse+QuickStart