Created
July 26, 2012 14:05
-
-
Save juliano/3182217 to your computer and use it in GitHub Desktop.
SimpleDev - Integrando Struts 2 e Spring
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:context="http://www.springframework.org/schema/context" | |
xsi:schemaLocation="http://www.springframework.org/schema/beans | |
http://www.springframework.org/schema/beans/spring-beans-3.1.xsd | |
http://www.springframework.org/schema/context | |
http://www.springframework.org/schema/context/spring-context-3.1.xsd"> | |
<context:component-scan base-package="br.com.simpledev.struts2spring" /> | |
</beans> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'eclipse' | |
apply plugin: 'jetty' | |
apply plugin: 'maven' | |
version = '0.1-SNAPSHOT' | |
group = 'br.com.simpledev' | |
repositories { | |
mavenCentral() | |
} | |
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8' | |
configurations { | |
provided | |
} | |
sourceSets { | |
main { compileClasspath += configurations.provided } | |
test { runtimeClasspath += configurations.provided } | |
} | |
eclipse.classpath.plusConfigurations += configurations.provided | |
dependencies { | |
compile 'org.apache.struts:struts2-core:2.3.4' | |
compile 'org.apache.struts:struts2-convention-plugin:2.3.4' | |
compile 'org.apache.struts.xwork:xwork-core:2.3.4' | |
compile 'ognl:ognl:3.0.5' | |
compile 'jstl:jstl:1.2' | |
compile 'org.javassist:javassist:3.16.1-GA' | |
compile 'org.freemarker:freemarker:2.3.19' | |
compile 'commons-logging:commons-logging:1.1.1' | |
compile 'commons-io:commons-io:2.1' | |
compile 'commons-fileupload:commons-fileupload:1.2.2' | |
compile 'org.apache.struts:struts2-spring-plugin:2.3.4' | |
compile 'org.springframework:spring-asm:3.1.1.RELEASE' | |
compile 'org.springframework:spring-beans:3.1.1.RELEASE' | |
compile 'org.springframework:spring-context:3.1.1.RELEASE' | |
compile 'org.springframework:spring-core:3.1.1.RELEASE' | |
compile 'org.springframework:spring-expression:3.1.0.RELEASE' | |
compile 'org.springframework:spring-web:3.1.1.RELEASE' | |
provided 'javax.servlet:servlet-api:2.5' | |
} | |
[jettyRunWar, jettyRun]*.contextPath = '/' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"> | |
<struts> | |
<constant name="struts.objectFactory" value="spring" /> | |
</struts> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/j2ee" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd"> | |
<filter> | |
<filter-name>struts2</filter-name> | |
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class> | |
</filter> | |
<filter-mapping> | |
<filter-name>struts2</filter-name> | |
<url-pattern>/*</url-pattern> | |
</filter-mapping> | |
<listener> | |
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> | |
</listener> | |
</web-app> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment