강의

멘토링

커뮤니티

Inflearn Community Q&A

sonth2000's profile image
sonth2000

asked

Spring Boot Concepts and Utilization

Spring Boot Actuator Part 3: Spring Boot Admin

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

Answer 1

0

whiteship님의 프로필 이미지
whiteship
Instructor

잘 생각해 보세요. 스프링 MVC에 대한 기초가 부족하신 건지.. 실수하신건지 잘 모르겠네요.

sonth2000's profile image
sonth2000

asked

Ask a question