송형근(Hyeongguen Song) /DnU
07/04/2025, 7:13 AM송형근(Hyeongguen Song) /DnU
07/04/2025, 7:14 AM@SpringBootTest(
properties = ["client.test.base-url=\${wiremock.server.baseUrl}"],
)
@EnableWireMock
class TestClientTest(
private val testClient: TestClient,
)
The Feign client URL was set successfully, but a 'Connection refused' error occurred when trying to connect to <http://localhost:8080>.
Lee Turner
07/04/2025, 2:40 PM--admin-api-basic-auth
startup option
https://wiremock.org/docs/standalone/java-jar/#command-line-options송형근(Hyeongguen Song) /DnU
07/04/2025, 4:31 PM./gradlew test
, something keeps trying to send a request to 127.0.0.1:8080
, and I can't figure out why.
Intellij works fine..
01:26:14.336 [qtp301039184-132] INFO WireMock - Request received:
127.0.0.1 - PUT /request/path
Content-Type: [application/json]
Accept: [*/*]
Accept-Encoding: [gzip, x-gzip, deflate]
Host: [localhost:10978]
Content-Length: [90]
Connection: [keep-alive]
User-Agent: [Apache-HttpClient/5.5 (Java/21.0.1)]
hmm.. https://github.com/spring-cloud/spring-cloud-contract/issues/2095#issue-2111712147 is related