NetBeans 8.1 사용.간단한 스프링 부트 프로젝트를 시작할 수 없습니다.
나는 콩이나 지속성이없는이 간단한 자바 스프링 부트 프로젝트를 가지고있다. 동일한 패키지에있는 두 개의 Java 클래스. 내가 그것을 실행하면 내가 갈 때
@SpringBootApplication
public class SpringSimpleTestApplication {
public static void main(String[] args) {
SpringApplication.run(SpringSimpleTestApplication.class, args);
}
}
@Controller
public class WebController {
@RequestMapping("/")
public String index(){
return "index";
}
}
그리고 SRC 아래에 "index.html을"파일/주/자원 -> 템플릿
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
</head>
<body>
<h1>Test</h1>
</body>
</html>
나는 오류가 없지만, http://localhost:8080/ 저는 입니다. Whitelabel Error Page :
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Thu Feb 09 01:53:26 CET 2017
There was an unexpected error (type=Not Found, status=404).
No message available
패키지 구조를 공유 할 수 있습니까 – sparrow
당신의 의존성 (Maven/Gradle)을 보여줄 수 있습니까? – g00glen00b