1. A first step, the reference to "flex, step by step. Doc" files, set up felx works.
二. The second step, with reference to "set up spring + hibernate + webflex works. Doc", give Flex Project Hibernate and Spring add property, the relevant configuration files will be automatically generated.
At this step you need to pay attention to the points added at the corresponding Hibernate and Spring after the property, but also on the web.xml configuration file required to carry out the relevant configuration:
1. The Spring configuration file information into the web.xml under the (configuration below)
<context-param>
<param-name> contextConfigLocation </ param-name>
<param-value>
/ WEB-INF/classes/applicationContext.xml
</ param-value>
</ context-param>
2. Spring and Flex will be the Listener injected web.xml:
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</ listener-class>
</ listener>
<! - Http Flex Session attribute and binding listener support ->
<listener>
<listener-class> flex.messaging.HttpFlexSession </ listener-class>
</ listener>
Note: need to pay attention to are web.xml configuration file to have the order of elements of the requirements of the order reversed there is probably cause error in the configuration element in the case of error-related prompts will appear.
Import must be at the java package, you must ensure that java package from the svn directories and download or import the Eclipse project to create the java package path consistency, in addition, it is also necessary to ensure a consistent Workspace, otherwise there is potential weird error message.
三. In the spring configuration file applicationContext.xml in the database about the configuration is as follows:
<bean "DB"
class = "org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name = "driverClassName"
value = "oracle.jdbc.driver.OracleDriver" />
<property name = "url"
value = "jdbc: oracle: thin: @ 10.200.250.110:1521: marine" />
<property name= "username" value= "marineadmin" />
<property name= "password" value= "usoft" />
</ bean>
For different types of databases, at "DB" The Bean in necessary changes in two configurations, namely:
driverClassName value and the value of the value the value of url, of course, have the database username and password. Specific information reference:
http://nlslzf.javaeye.com/admin/blogs/311599
Different database would also like to import a different database driver, Oracle's database-driven are: classes12.jar
Directory, see: E: \ javawork \ dependency \ dbDriver
Note: because of the database from SqlServer replaced by Oracle, java on the SQL query should also have the corresponding changes, otherwise they will cause in the run-time error.
四. About the svn upload the whole project, please refer to the video: "flexweb uploaded to svn0002.avi"
五. In the Flex configuration file ". ActionScriptProperties" Even if there is an error in the error will not, sometimes because of improper modifications will cause the document is damaged, can not be Eclipse identification, in this case, the project Application can not run (because Flex Project information has been lost)
To back up your configuration file ". ActionScriptProperties" content, and then empty.
Can first click works, right "Flex Project Nature" -> "Add Flex Project Nature"
And according to the specific circumstances of configuration files.
Note: Once the configuration file ". ActionScriptProperties" is damaged, one of a number of configurations are required to re-configure, or at run-time error.
Note: At Eclipse, the general java error can be divided into two categories:
1. The lack of java packages;
Package version 2.Java error;
Emergence of the first general report error "Class Not Found", the second error appeared in general are "No Such Method Found"
3. If the above two are not, please Tomact directory to delete the project folder (such as; "F: \ tomcat \ webapps"), then restart tomcat.







