Appfuse: Start and appfuse
I have been exploring many open-source Java open-source CMS for a long time and finally selected appfuse for the following reasons:
1. conciseness: only the framework is set up and no extra work is done.
2. Complete basic user management: the definition of users, roles, and permissions is clear.
3. Meet the expected architecture requirements: SpringMVC + Hibernate + Velocity
4. Build Based on Maven
For more appfuse capabilities, refer to the first-time introduction to appfuse
Preparations start!
1. Create a project based on Maven (SpringMVC-based version ):
Mvn archetype: generate-B-DarchetypeGroupId = org. appfuse. archetypes-DarchetypeArtifactId = appfuse-basic-spring-archetype-DarchetypeVersion = 3.5.0-DgroupId = com. disappearwind-DartifactId = windcms-DarchetypeRepository = https://oss.sonatype.org/content/repositories/appfuse
For more framework architecture options, please go to the official website http://appfuse.org/pages/viewpage.action? PageId = 3866645. Pay attention to the wall work; otherwise, the script is not executed.
2. Obtain the source code of the project.
Mvn appfuse: full-source
3. Modify the database connection (pom. xml file)
If the properties node cannot be found, add it to the </project> file in the pom. xml file. Otherwise, add it directly under the properties node.
<Properties>
<Jdbc. username> root </jdbc. username>
<Jdbc. password> root </jdbc. password>
<Jdbc. url> <! [CDATA [jdbc: mysql: // localhost: 3306/appproject? CreateDatabaseIfNotExist = true & amp; useUnicode = true & amp; characterEncoding = UTF-8]> </jdbc. url>
</Properties>
4. Run it !!!
Mvn jetty: run
5. Chinese garbled characters
Copy the Chinese ApplicationResources file, and call the following code to regenerate the target file each time you modify the copied file. (The solution is a little frustrated and needs to be improved !)
Native2ascii-encoding UTF-8 "E: \ workspaces \ windcms \ src \ main \ resources \ ApplicationResources_zh_source.properties" "E: \ workspaces \ windcms \ src \ main \ resources \ ApplicationResources_zh.properties"
Thanks for some websites that have helped me during the exploration process!
Http://www.360doc.com/content/14/0107/16/1332348_343357577.shtml
Http://www.ibm.com/developerworks/cn/java/j-lo-appfuse/
Http://www.yiibai.com/jstl
Http://blog.csdn.net/randyjiawenjie/article/details/7909779