Skip to content

Commit 0174fd7

Browse files
committed
Project is published
0 parents  commit 0174fd7

File tree

16 files changed

+1046
-0
lines changed

16 files changed

+1046
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
target/
2+
.idea/
3+
*.iml
4+
.mvn/

Readme.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
Simple Crud Spring Boot
2+
===
3+
4+
- **Java Version** : 11
5+
- **Spring Boot Version** : 2.4.5
6+
7+
In this repository, I have prepared a simple CRUD system that will be an example for you.
8+
I chose PostgreSQL as the database.
9+
Please the edit the `application.yaml` file to your own server settings.
10+
The route structure is as follows.
11+
12+
| Method | Url | Description
13+
| -----| -----| -----|
14+
|Get | http://localhost:8080/categories | Get All Categories
15+
|Post | http://localhost:8080/categories | Create New Category
16+
|Get | http://localhost:8080/categories/categoryId | Get Category By Id
17+
|Put | http://localhost:8080/categories/categoryId | Update Category By Id
18+
|Delete | http://localhost:8080/categories/categoryId | Delete Category By Id
19+
|Get | http://localhost:8080/categories&sort=id | Sort returns categories by id
20+
|Get | http://localhost:8080/categories&sort=id,asc | Sort returns categories by id with asc
21+
|Get | http://localhost:8080/categories&sort=id,desc | Sort returns categories by id with desc
22+
|Get | http://localhost:8080/categories&sort=name | Sort returns categories by name
23+
|Get | http://localhost:8080/categories&sort=name,asc | Sort returns categories by name with asc
24+
|Get | http://localhost:8080/categories&sort=name,desc | Sort returns categories by name with desc
25+
26+
#application.yml
27+
```yaml
28+
server:
29+
error:
30+
include-message: always
31+
include-binding-errors: always
32+
33+
spring:
34+
application:
35+
name: SimpleCrud
36+
jpa:
37+
hibernate:
38+
ddl-auto: update
39+
datasource:
40+
hikari:
41+
connection-timeout: 20000
42+
maximum-pool-size: 5
43+
url: jdbc:postgresql://localhost:5432/postgres
44+
username: postgres
45+
password: postgres
46+
47+
```
48+
49+
50+
51+

mvnw

Lines changed: 322 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)