GeezerVison is showing github.com — fix the description of how to integrate with spring mvc · astamuse/asta4d@17eb442
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: asta4d-doc/src/docbkx/en/detail_integration_spring.xml +28-3Lines changed: 28 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
53 | 53 | <?xml version="1.0" encoding="UTF-8"?> |
54 | 54 | <bean id="asta4dConfiguration" class="com.astamuse.asta4d.web.WebApplicationConfiguration"> |
55 | 55 | <property name="snippetResolver"> |
56 | | - <bean class="com.astamuse.asta4d.misc.spring.SpringManagedSnippetResolver"/> |
| 56 | + <bean class="com.astamuse.asta4d.misc.spring.SpringManagedSnippetResolver"> |
| 57 | + <property name="searchPathList"> |
| 58 | + <list> |
| 59 | + <value>com.foo.web.snippet</value> |
| 60 | + </list> |
| 61 | + </property> |
| 62 | + </bean> |
57 | 63 | </property> |
58 | 64 | <property name="instanceResolverList"> |
59 | 65 | <list> |
|
121 | 127 | <example> |
122 | 128 | <programlisting language="xml"> |
123 | 129 | <![CDATA[ |
124 | | - <bean class="com.astamuse.asta4d.misc.spring.mvc.Asta4dTemplateInitializer"/> |
125 | | - <bean class="com.astamuse.asta4d.misc.spring.mvc.SpringWebPageViewResolver"/> |
| 130 | + <bean id="asta4dConfiguration" class="com.astamuse.asta4d.web.WebApplicationConfiguration"> |
| 131 | + <property name="snippetResolver"> |
| 132 | + <bean class="com.astamuse.asta4d.misc.spring.SpringManagedSnippetResolver"> |
| 133 | + <property name="searchPathList"> |
| 134 | + <array> |
| 135 | + <value>com.foo.web.snippet</value> |
| 136 | + </array> |
| 137 | + </property> |
| 138 | + </bean> |
| 139 | + </property> |
| 140 | + <property name="cacheEnable" value="false"/> |
| 141 | + </bean> |
| 142 | + |
| 143 | + <bean class="com.astamuse.asta4d.misc.spring.mvc.SpringWebPageViewResolver"> |
| 144 | + <property name="prefix" value="/templates"/> |
| 145 | + <property name="suffix" value=".html"/> |
| 146 | + </bean> |
| 147 | + |
| 148 | + <mvc:interceptors> |
| 149 | + <bean class="com.astamuse.asta4d.misc.spring.mvc.Asta4dContextInitializeHandlerInterceptor"/> |
| 150 | + </mvc:interceptors> |
126 | 151 | ]]> |
127 | 152 | </programlisting> |
128 | 153 | </example> |
|