Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
从 Grails 4 开始,无法再通过这种方式在 grails 集成测试中获取服务器端口:
@Value('${local.server.port}') Integer serverPort
在测试中获取服务器端口的正确方法是什么?
serverPort 已经在 Grails 4 集成测试中作为serverPort. 无需为它创建变量。
serverPort