小编Tho*_*erg的帖子

何时使用@Embedded和@Embeddable?

在Java中可以将类注释为@Embeddable或将属性设置为@Embedded.示例代码:

@Embeddable
class A{
...
}

class B{
...
}

@Entity
class Foo {
    A a;
    @Embedded B b;
}
Run Code Online (Sandbox Code Playgroud)

什么时候喜欢@Embedded@Embeddable

java jpa javax.persistence

7
推荐指数
2
解决办法
6169
查看次数

如何在 logom 应用程序中更改服务网关的端口?

我已经创建了入门应用程序 http://www.lagomframework.com/documentation/1.0.x/GettingStarted.html

并且系统启动良好。

[info] Service locator is running at http://localhost:8000
[info] Service gateway is running at http://localhost:9000
[info] application - Signalled start to ConductR
[info] application - Signalled start to ConductR
[info] Service hellostream-impl listening for HTTP on 0:0:0:0:0:0:0:0:26230
[info] Service helloworld-impl listening for HTTP on 0:0:0:0:0:0:0:0:24266
Run Code Online (Sandbox Code Playgroud)

如何更改服务网关的主机和端口以侦听 0.0.0.0:8080 ?

lagom

1
推荐指数
1
解决办法
1032
查看次数

标签 统计

java ×1

javax.persistence ×1

jpa ×1

lagom ×1