简体   繁体   English

Spring Boot属性注入到JPA实体定义

[英]Spring boot property injection to JPA entity definitions

Is it possible to use spring boot property placeholder notations in JPA entity defitinions ? 是否可以在JPA实体定义中使用spring boot属性占位符表示法? For instance following is not working : 例如以下不起作用:

@Entity
@Table(schema=@Value("schemaname") , name="tablename")
public class InterfaceModel {

Is there a way to make this work ? 有办法使这项工作吗?

No there isn't. 不,没有。 Check #829 in the Spring Boot issue tracker for more details. 有关更多详细信息,请在Spring Boot问题跟踪器中检查#829

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM