Prerequisites:
- Java 1.8
- Maven
- IntelliJ IDEA (with lombok plugin)
With Spring Boot, run plain old Java program (public static void main...) rather than using a container.
To fire up Spring Boot
public static void main( String[] args ) {
SpringApplication.run(Application.class, args);
}This starts up Tomcat at http://localhost:8080.
java -jar elux.jar
To customize port for servlet container (default is 8080):
server.port=8181
To specify a profile to load, in the IDE run configuration, add a VM argument:
-Dspring.profiles.active=test
http://localhost:8080/api/v1/all
http://localhost:8080/api/v1/create
http://localhost:8080/api/v1/remove/{id}
http://localhost:8080/api/v1/update/{id}
{"id":1,"name":"EWF1286GDW2","description":"Front loader washing machine","status":"UNKNOWN"}