我正在开发面向MySQL数据库的Spring Data JPA项目,并且我想从Maven运行端到端的集成测试。 到目前为止,我已配置io.fabric8.docker-maven-plugin在pre-integration-test阶段启动一个MySQL容器。它将使用一个随机可用端口,我需要将它传递给我的application.properties文件。 我已经试过Automatic prope
I have one query with spel in repository
@Query(value = "SELECT e from Estate e where e.loop >= ?#{#loop} AND e.loop <= ?#{#loop>4?10:#loop}")
Page<Estate> findAllThroughForeground(@Param("loop") s