|
|
|
|
|
|
z****e 发帖数: 54598 | 1 http://github.com/vert-x3/vertx-examples/tree/master/spring-exa
This project is a demo of exposing Spring-hosted service beans (and
therefore Spring-wired services) via vert.x verticles. In vert.x 3 it’s
perfectly possible to share an application context between multiple
verticles.
In this case the service bean we expose through vert.x is a trivial data
access service running through Spring Data JPA (and using Hibernate). In
effect we’re taking advantage of the ease of building data access via
Spring/Hibernate but using vert.x as the connector between external clients
and the Spring context.
Note that because we’re doing blocking JDBC access, we host the call to the
service within an executeBlocking call, to avoid blocking the event bus.
You can run it directly in your IDE by creating a run configuration that
uses the main class io.vertx.examples.spring.SpringExampleRunner. | l**********n 发帖数: 8443 | | l*********s 发帖数: 5409 | | z****e 发帖数: 54598 | 4
你只有一个java,一个jdk
无论是vert.x还是spring都依赖这个jdk
spring只需要有jre就行,jdk就包含有jre
跟java版本不兼容有什么关系?
【在 l*********s 的大作中提到】 : 貌似不行,java版本不兼容吧
| z****e 发帖数: 54598 | 5
可以,但是没有意义
【在 l**********n 的大作中提到】 : android 可以用vert.x吗?
|
|
|
|
|
|
|