Próbuje uruchomić prosty przykład ze springa w
@Controller
@EnableAutoConfiguration
public class HelloWorldController {
@RequestMapping("/")
@ResponseBody
String getMessage() {
return "<h1>Witaj, świecie!</h1>";
}
public static void main(String[] args) throws Exception {
SpringApplication.run(HelloWorldController.class, args);
}
}
przy użyciu tomcat7-maven-plugin
dla RUN tomcat7:run
wszystko bez błędów i kończy działanie, dla DEBUG Connected to the target VM, address: '127.0.0.1:39551', transport: 'socket' ... i na końcu
Disconnected from the target VM, address: '127.0.0.1:39551', transport: 'socket'` pod adresami 127.0.0.1:39551 lub :8080 nic nie mam. Jak to naprawić?