Inflearn Community Q&A
localhost:18080/hello시 404 에러
Written on
·
484
0
management.endpoints.web.exposure.include=*
spring.boot.admin.client.url=http://localhost:8080
server.port=18080
클라이언트 properties에 다음과같이 설정하고
localhost:18080/hello로 접근하면
Whitelabel Error Page
404에러가 뜨는데 뭐가 잘못된걸까요..?
아래는 client에서의 java소스입니다.
package me.izac.springbootactuatordemo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
@SpringBootApplication
public class Application {
@GetMapping("/hello")
public String hello() {
return "hello";
}
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}
spring-bootspringjava





