1
을 무시합니다.spring-boot 자동 구성은 클래스 경로 루트 (src/main/resources)에있는 application.yml
같은 위치의 application.properties 파일이 올바르게 사용되었습니다.
@Controller
@EnableAutoConfiguration
public class TestResource {
@RequestMapping("/")
public @ResponseBody Map<String, String> test() {
return Collections.singletonMap("text", "test text");
}
public static void main(String[] args) {
SpringApplication.run(TestResource.class, args);
}
}
버전 1.0.0부터는 관련이 없습니다 (yaml 의존성은 spring-boot에 의해 제공됩니다) – pl47ypus