Guys,

I am on my path to relearn Spring MVC, etc... and I ran into something weird.

As someone suggested, I went to Spring initializr to generate a SpringBoot zip, 
and open it Netbeans, which was detected as a Maven project.

With extremely minor changes, such adding the following lines to the 
application class

@RestController
...
@GetMapping("/hello")
public String hello () {
Return "hey";
}

Within Netbeans, I would end up getting:

Error: Could not find or load main class ${start-class} Caused by: 
java.lang.ClassNotFoundException: ${start-class} Command execution failed. 
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit 
value: 1)

But... if I were to do this in IntelliJ community edition, it works and 
deployed immediately using Spring's Built-in internal tomcat server.

Any ideas on why?

Stay Safe!
______________________
Samson Chung

Reply via email to