Appfuse: Start and appfuse

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.