有一个存储库:
@Repository
public interface ArticleDao extends CrudRepository<Article, Long> {
@Query(nativeQuery = true, value = "SELECT ITMREF_0,ACCCOD_0 FROM [tomx3v6].[TOMCTB].[ITMMASTER] where YITMOXA_0 = :itmoxa ")
public Article getByCode(@Param("itmoxa") String code);
}
我想使TOMCTB
像上面的代码片段一样不是常量,而是要从属性文件中动态获取。如何实现?