AppFUSE Learning Notes - Introduction

xiaoxiao2021-03-06  46

I. Introduction AppFuse is a web development framework written by Master Characters today. It integrates the current most popular web application framework, or it is a web development base platform, which is compared to the various frames integrated. It provides some features that need to be developed in all Web system development, such as landing, user password encryption, user management, more different users can display different menus, can automatically generate about 40% -60% code It comes with the default some style set in CSS, using these styles quickly changes the entire system's appearance, and the function of automated testing. Learning the code written by the master, we seem to have an excellent instructor to guide us, tell us how to build a web application, appfuse provides us with a new way and ideas for web development, it will hibernate, Struts, Spring, DBUnit, Ant, Log4j, Struts Menu, XDoclet, Sitemesh, Velocity, Junit, JSTL, WebWork, etc. It provides a good reference to learning. The latest version is 1.8.2, and the implementation of the function is used with the largest difference between version 1.7, which uses the ACEGI instead of the container to do permission management.

Second, get the way http://raibledesigns.com/wiki/wiki.jsp?page=appfuse is the official website of AppFuse, with the latest source code download. In addition, JDK is of course necessary, to 1.4.2 or more. The web container uses Tomcat 5.0.28, the database uses mysql4.1.7. In addition, you also need to download Ant 1.6.2 or above for project build, download IDE to use Eclipse, recommend version 3.0.1. AppFuse has a mail function. To implement this, you need to install SMTP services locally. (If you feel that there is no need, no, it will not cause the program to run an error.)

Third, the precautions in the installation 1. After the ANT is decompressed, you need to add Ant_home to the decompressed path in the environment variable and add% Ant_Home% / bin in the PATH. Then copy the /lib/junit3.8.1/junit.jar under the AppFuse folder to the LIB folder in the Ant installation directory. 2. Install the MySQL database and add mysql_home to the installation path in the environment variable and add% mysql_home% / bin in the PATH. It is basically possible to set the default setting when set, but you should pay attention to change the character set to UTF8.

Fourth, build a project 1. Enter the appfuse source root root directory in the console, type the command: Ant New, the system will prompt you to type the project name and database name, and package name. This command creates a folder named after your project name, with the AppFUSE, contains the project source code. Note that the project name cannot use "TEST" or "appfuse" or start with a number. When the console displays "Build Successful", the new project is generated. 2. Enter the newly generated project folder, run the Ant Setup, this command will create the database of the previously specified name in MySQL, and compile the source code, package it to Tomcat. AppFUSE By default, the root account password of the database is empty. If you set your password to the database, you need to modify the Properties.xml file under the root directory. Search the label named Database.admin.password, rewrite the value to the actual database password. 3. Run Tomcat, connect to http: // localhost: 8080 / project name, look at our results! 4.8 The version 1.8 contains a bug, which is not good for Chinese, so you can see garbled in the running interface, and may stop at the Test-JSP interpretation when running Ant Test-ALL. We can modify /Web/web-inf/classes/applicationresources_zh_cn.properties and ApplicationResources_zh.properties files, you can change the part of the garbled. (However, the problem with Test-JSP error cannot be resolved, the treatment occasion is slowly studied)

转载请注明原文地址:https://www.9cbs.com/read-45320.html

New Post(0)