It's configured pretty much in the same way like all roo-generated projects ... So it's based on Spring 3. Entities have @Entity, DAOs @Repository and service classes @Service. Here are the parts of config files:
applicationContext.xml
Code:
<context:property-placeholder location="classpath*:META-INF/spring/*.properties"/>
<context:spring-configured/>
<context:component-scan base-package="com.somepackage">
<context:exclude-filter expression="org.springframework.stereotype.Controller" type="annotation"/>
</context:component-scan>
... data source, transaction manager etc.
webmvc-config.xml
Code:
<context:component-scan base-package="rs.wm.appstore.server" use-default-filters="false">
<context:include-filter expression="org.springframework.stereotype.Controller" type="annotation"/>
</context:component-scan>
<mvc:annotation-driven conversion-service="conversionService" />
<bean id="conversionService" class="org.springframework.context.support.ConversionServiceFactoryBean">
<property name="converters">
<list>
<bean class="rs.wm.appstore.server.core.IdToEntityConverterWithRegistrySupport" />
</list>
</property>
</bean>
<mvc:default-servlet-handler/>
... mvc interceptors, error handler, viewresolver, tilesview, etc.
And I'm trying to access the beans from IdToEntityConverterWithRegistrySupport class.