For further reference, please consider the following sections:
The following guides illustrate how to use some features concretely:
- Building a RESTful Web Service
- Serving Web Content with Spring MVC
- Building REST services with Spring
https://dzone.com/articles/spring-boot-with-embedded-postgresql-for-dao-integ
in DbConfig
Instead of using
private static final List<String> DEFAULT_ADDITIONAL_INIT_DB_PARAMS = Arrays
.asList("--nosync", "--locale=en_US.UTF-8");
Use : private static final List DEFAULT_ADDITIONAL_INIT_DB_PARAMS = Arrays .asList("--nosync", "--locale=en_US");
-
Download and unzip the file (make sure java 8+ and maven installed in system)
-
Open Command prompt and Run $ mvn clean install && mvn spring-boot:run
-
Access the urls
-
To run the Problem3, you can use the IDE or I have created one more file Problem4.java, just compile and run.
-
$javac Problem4.java && java Problem4
Note : $ is to indicate the command prompt.