类路径资源作为值 spring DSL
我想有一些替代方案,可以在 Grails 中使用 Spring DSL。
<bean name="someName" class="SomeClass">
<property name="resource" value="classpath*:Queues.xml"></property>
</bean>
I want to have some alternative to this using Spring DSL in Grails.
<bean name="someName" class="SomeClass">
<property name="resource" value="classpath*:Queues.xml"></property>
</bean>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您确实愿意,可以使用 resources.xml 而不是 resources.groovy 来实现更传统的 Spring-y 风格。
If you really want to, you can use resources.xml instead of resources.groovy for a more conventionally Spring-y style.