集成Play framework 2.0和Spring框架 [英] Integrating Play framework 2.0 and Spring framework

查看:577
本文介绍了集成Play framework 2.0和Spring框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了一个Spring / JPA应用程序:服务,存储库和域层即将完成

I have developed a Spring/JPA application: the service, repository and domain layers are nearing completion.

缺少的图层是网络图层。我正在考虑将Playframework 2.0用于网络层,但我不确定我是否可以在我的Playframework 2.0类中注入/使用spring bean

The only layer that is missing is the web layer. I am considering using Playframework 2.0 for the web layer but I am not sure whether I can inject/use spring beans in my Playframework 2.0 classes.

这可能吗?如果是这样的话?

Is this possible? If so how?

推荐答案

你可以。已针对Play 2.5.x进行了更新:

You can. Updated for Play 2.5.x:

https://github.com/remithieblin/play-spring-loader

这篇关于集成Play framework 2.0和Spring框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆