文档详情

《flex_spring_mvc》.pdf

发布:2015-12-27约1.22万字共10页下载文档
文本预览下载声明
一、环境 : MyEclipse7.0 Felx Builder3.0 JDK1.6 Flex sdk3.2 Tomcat6.0 二、创建 JAVA We b 在 MyEclipse 中创建 Web Project :TestProject 将相关 JAR 包拷贝到 WEB-INF/lib 下,并引入到项目的 Build Path 中 三、创建 FLEX 工程 在 Flex Builder 中创建 Flex Project :TestProject 四、配置 web.xml 配置 JAVA Web 工程中 WebRoot/WEB-INF/web.xml !--添加模式文件-- web-app version=2.4 xmlns=/xml/ns/j2ee xmlns:xsi=/2001/XMLSchema-instance xsi:schemaLocation=/xml/ns/j2ee /xml/ns/j2ee/web-app_2_4.xsd !--指定欢迎页-- welcome-file-list welcome-fileindex.jsp/welcome-file 1. /welcome-file-list 2. !--指定初始化文件-- 3. context-param 4. param-namecontextConfigLocation/param-name 5. param-value 6. classpath:ApplicationContext.xml, classpath:Application-Flex.xml 7. /param-value 8. /context-param 9. !--添加监听器-- 10. listener 11. listener-class 12. org.springframework.web.context.ContextLoaderListener 13. /listener-class 14. /listener 15. listener 16. listener-class 17. org.springframework.security.ui.session.HttpSessionEventPublisher 18. /listener-class 19. /listener 20. !--添加 servlet 配置-- 21. servlet 22. servlet-nameflex/servlet-name 23. servlet-classorg.springframework.web.servlet.DispatcherServlet 24. /servlet-class 25. load-on-startup1/load-on-startup 26. /servlet 27. servlet-mapping 28. servlet-nameflex/servlet-name 29. url-pattern/messagebroker/*/url-pattern 30. /servlet-mapping 31. !--添加 session 配置-- 32. session-config 33. session-timeout30/session-timeout 34. /session-config 35. !--添加模式文件-- 36. web-app version=2.4 37. xmlns=/xml/ns/j2ee 38. xmlns:xsi=/2001/XMLSchema-instance 39. xsi:schemaLocation=/xml/ns/j2ee 40. /xml/ns/j2ee/web-app_2_4.xsd 41. !--指定欢迎页-- 42. welcome-file-list 43. welcome-fileindex.jsp/welco
显示全部
相似文档