尝试用getter从2个连接表中获取值,有2个模型Customer和Address。: @Query( value = "SELECT ad FROM Address ad, Customer c WHERE ad.customer = c.id and c.id = 1)
Optional<List<Address>> getAddress(); 尝试使用getter: Optional<Li
我使用Spring和MySQL。我遵循链接来设置所有的东西,并且能够连接到MySql并读取/写入数据。Transactional如果我在我的控制器里这样做我得到了:
org.springframework.orm.jpa.JpaSystemException: could not get a field <
我使用了springboot 2.2.2,并且我有一些外部属性要从属性文件中读取。当属性是默认application.properties的一部分时,所有属性都会被读取,但当我将其移动到单独的属性文件中时,它们似乎不会被读取。我有以下类:@ConfigurationProperties //I use @ConfigurationPropertiesScan with @SpringBootApplication@PropertySource(<