Teach you how to integrate spring with flex eclipse

Download Flash Builder first_ 4_ 7_ LS10_ win64. Exe tried to install several eclipse plug-ins without success, including MyEclipse 8 5、spring sts2. 9.2、eclipse3. 5. J2eeeclipse version 4.2 0. Later, I built a flashbuilder_ 4_ LS10. Exe cannot find the plug-in installation file after installation. Originally, this is a separate version. You must use the plug-in version. Finally, Download flashbuilder_ 4_ Plugin_ LS10. Exe is finally configured successfully, MyEclipse 8 5 No, spring STS is OK.

Spring STS deployment application is different from MyEclipse and is similar to eclipse.

There are several steps to integrate flex and Java with STS:

1: Create a new dynamic web project flexweb and create web xml

2: blazeds-turnkey-4.0. 0.14931. Zip, copy the blazed folders flex and lib to the WEB-INF, where are the blazed jar package and flex configuration file, and then modify the web XML adds blaze support

<listener>
  <listener-class>flex.messaging.HttpFlexSession</listener-class>
 </listener>

 
 <!-- MessageBroker Servlet -->
 <servlet>
  <servlet-name>MessageBrokerServlet</servlet-name>
  <servlet-class>flex.messaging.MessageBrokerServlet</servlet-class>
  <init-param>
   <param-name>services.configuration.file</param-name>
   <param-value>/WEB-INF/flex/services-config.xml</param-value>
  </init-param>
  <load-on-startup>1</load-on-startup>
 </servlet>
 <servlet-mapping>
  <servlet-name>MessageBrokerServlet</servlet-name>
  <url-pattern>/messagebroker/*</url-pattern>
 </servlet-mapping>
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>