Skip to content

hendisantika/springboot-ehcache-demo

Repository files navigation

springboot-ehcache-demo

Things todo list

  1. Clone this repository: git clone https://github.com/hendisantika/springboot-ehcache-demo.git
  2. Navigate to the folder: cd springboot-ehcache-demo
  3. Run the application: mvn clean spring-boot:run
  4. Open your POSTMAN APP then import the file

Image Screen shot

Add New Employee

Add New Employee

curl --location --request POST 'http://localhost:8080/employee' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "Uchiha Sasuke",
    "tech": "Tim 1"
}'

List All Employee

List All Employee

List All Employee

curl --location --request GET 'http://localhost:8080/employee' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "Uzumaki Naruto",
    "tech": "Tim 1"
}'

Find Employee By ID

Find Employee By ID

curl --location --request GET 'http://localhost:8080/employee/1'

Evict the Cache

Evict the Cache

curl --location --request GET 'http://localhost:8080/employee/evict'

About

This is a simple Spring Boot application with Ehcache

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages