Skip to content

Latest commit

 

History

25 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring

spring-mvc-sample

  note  : change pom tomcat directory location
  build : mvn clean install
  url   : http://localhost:8080/welcome

spring-boot-sample

  build     : mvn spring-boot:run
  api url   : http://localhost:8080/welcome

spring-boot-swagger-sample

  build     : mvn clean install
  api url   : http://localhost:8080/welcome
  swagger url: http://localhost:8080/swagger-ui.html

spring-boot-multi-module-sample

  build     : mvn clean install
            : cd sample-web
            : mvn spring-boot:run
  api url   : http://localhost:8080/welcome  

spring-boot-versioning-sample

  build     : mvn spring-boot:run
  api url   : http://localhost:8080/v1/welcome 
            : http://localhost:8080/v2/welcome 

spring-boot-data-jpa-sample

  build     : mvn spring-boot:run
  api url   : http://localhost:8080/product

spring-boot-cloud-function-sample

  build     : mvn spring-boot:run
  api url   : GET  http://localhost:8080/helloworld 
            : post http://localhost:8080/welcome (body: pass any text)

spring-boot-curd-rest-sample

  note      : have used lambok(https://projectlombok.org/) library, install IDE addon
  build     : mvn spring-boot:run
  api url   : get http://localhost:8080/employee
	    : get http://localhost:8080/employee/1
            : post http://localhost:8080/employee
	    : put http://localhost:8080/employee/1
            : delete http://localhost:8080/employee/1
 sample body: {
                "firstName": "John",
                "lastName": "Smith"
               }                   

spring-boot-cache-sample

  note      : check the console log to see whether result came from cache or not
  	    : edit an employee & check the result	
  build     : mvn spring-boot:run
  api url   :  same api's of spring-boot-curd-rest-sample             

spring-boot-swagger-advance-sample

  note      : have used lambok(https://projectlombok.org/) library, install IDE addon
  build     : mvn spring-boot:run
  api url   : get http://localhost:8080/employee
  swagger url: http://localhost:8080/swagger-ui.html            

spring-boot-multi-profile-sample

  note      : 2 profiles(prod,dev)
  	    : change application.properties file active profile to 'dev' or 'prod'
	    : or else use specific maven cmd (mvn spring-boot:run -Drun.profiles=prod/mvn spring-boot:run -Drun.profiles=dev)
  build     : mvn spring-boot:run
  api url   : get http://localhost:8080/welcome     

About

Spring based basic sample project

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages