2
通常,春季Webflow的配置从application-context.xml
进口:如何使用@Configuration配置Spring Webflow 2.3.1?
<?xml version="1.0" encoding="UTF-8"?>
<beans .../>
....
<import resource="config/webflow-config.xml" />
</beans>
但在春季3.1,就可以从Java与@Configuration
执行所有的配置和摆脱application-context.xml
。
我有以下我的网页配置:
@Configuration
@Import({ MyConfig1.class, MyConfig2.class })
public class WebConfig extends WebMvcConfigurerAdapter {
...
}
是否有可能摆脱webflow-config.xml
过使用@Configuration
?如果是的话如何?如果不是,如何让我的网页配置包括webflow-config.xml
?