https://github.com/tunnels4u/spring-rest-service
This is a free to reuse - basic(CRUD) rest service using "java, spring boot, spring web, spring-data-jpa and h2 database" with maven. Please also have a look at the license file.
https://github.com/tunnels4u/spring-rest-service
embedded free h2-database java rest-api spring-boot spring-data-jpa spring-web
Last synced: about 2 months ago
JSON representation
This is a free to reuse - basic(CRUD) rest service using "java, spring boot, spring web, spring-data-jpa and h2 database" with maven. Please also have a look at the license file.
- Host: GitHub
- URL: https://github.com/tunnels4u/spring-rest-service
- Owner: tunnels4u
- License: mit
- Created: 2025-03-21T16:18:13.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-25T13:42:30.000Z (about 1 year ago)
- Last Synced: 2026-04-05T12:28:41.805Z (3 months ago)
- Topics: embedded, free, h2-database, java, rest-api, spring-boot, spring-data-jpa, spring-web
- Language: Java
- Homepage:
- Size: 5.94 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# java_spring-boot_rest_service
This is a free to reuse - basic(CRUD) rest service using "java, spring boot, spring web, spring-data-jpa and h2 database" with maven.
Please also have a look at the license file.
If you find it is useful for you and the community and more end to end applications should be developed,
please leave a star on the repo.
I am an independent developer, if you want to support my work/time
consider hitting that sponsorship button on the right!
or
if you feel like, just buy me a coffee!
Feedback welcome!
## How to run it?
**Prerequisites**
- git
- jdk 17
- apache-maven-3.9.8
**Run following commands in your terminal**
- cd path_where_you_wantto_keep_the_project/
- git clone https://github.com/tunnels4u/spring-rest-service.git
- cd spring-rest-service
- mvn compile
- mvn exec:java
Now, you should be able to access the rest service at "http://localhost:8080/crudapi/welcome"
If you would like, Use it in combination with [java app front end](https://github.com/tunnels4u/javapp.git)
**End Points**
- /welcome [GET mapping]
- /create-employee [POST mapping]
- /get-employees [GET mapping]
- /delete-employee/{id} [DELETE mapping]
- /update-employee [PUT mapping]
## How to stop it?
Execute on your terminal,
- Ctrl + C
Now, you won't be able to access the rest service at "http://localhost:8080/crudapi/welcome"