Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added apllicationContext to the repo
- Loading branch information
Showing
4 changed files
with
908 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<beans xmlns="http://www.springframework.org/schema/beans" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation=" | ||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd"> | ||
|
||
<bean id="grailsApplication" class="org.codehaus.groovy.grails.commons.GrailsApplicationFactoryBean"> | ||
<description>Grails application factory bean</description> | ||
<property name="grailsDescriptor" value="/WEB-INF/grails.xml" /> | ||
<property name="grailsResourceLoader" ref="grailsResourceLoader" /> | ||
</bean> | ||
|
||
<bean id="pluginManager" class="org.codehaus.groovy.grails.plugins.GrailsPluginManagerFactoryBean"> | ||
<description>A bean that manages Grails plugins</description> | ||
<property name="grailsDescriptor" value="/WEB-INF/grails.xml" /> | ||
<property name="application" ref="grailsApplication" /> | ||
</bean> | ||
|
||
<bean id="grailsConfigurator" class="org.codehaus.groovy.grails.commons.spring.GrailsRuntimeConfigurator"> | ||
<constructor-arg> | ||
<ref bean="grailsApplication" /> | ||
</constructor-arg> | ||
<property name="pluginManager" ref="pluginManager" /> | ||
</bean> | ||
|
||
<bean id="grailsResourceLoader" class="org.codehaus.groovy.grails.commons.GrailsResourceLoaderFactoryBean" /> | ||
|
||
<bean id="characterEncodingFilter" class="org.springframework.web.filter.CharacterEncodingFilter"> | ||
<property name="encoding"> | ||
<value>utf-8</value> | ||
</property> | ||
</bean> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<sitemesh> | ||
<page-parsers> | ||
<parser content-type="text/html" | ||
class="org.codehaus.groovy.grails.web.sitemesh.GrailsHTMLPageParser" /> | ||
<parser content-type="text/html;charset=ISO-8859-1" | ||
class="org.codehaus.groovy.grails.web.sitemesh.GrailsHTMLPageParser" /> | ||
<parser content-type="text/html;charset=UTF-8" | ||
class="org.codehaus.groovy.grails.web.sitemesh.GrailsHTMLPageParser" /> | ||
</page-parsers> | ||
|
||
<decorator-mappers> | ||
<mapper class="org.codehaus.groovy.grails.web.sitemesh.GrailsLayoutDecoratorMapper" /> | ||
</decorator-mappers> | ||
</sitemesh> |
Oops, something went wrong.