Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ksg97031/spring-demo
Spring Repo for Testing org.springframework.web.bind.annotation.*
https://github.com/ksg97031/spring-demo
Last synced: 27 days ago
JSON representation
Spring Repo for Testing org.springframework.web.bind.annotation.*
- Host: GitHub
- URL: https://github.com/ksg97031/spring-demo
- Owner: ksg97031
- Created: 2023-07-26T14:40:17.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-12T15:33:47.000Z (over 1 year ago)
- Last Synced: 2023-08-12T16:42:36.747Z (over 1 year ago)
- Language: Java
- Homepage:
- Size: 65.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Test Controller
### Requirements
Java 17### Build & Run
```sh
$ ./gradlew bootRun
or
$ ./gradlew build
$ java -jar build/libs/demo-0.0.1-SNAPSHOT.jar
```### Test
```sh
$ chmod +x test.sh
$ ./test.sh
```Output
```
HTTP/1.1 200
Connection: keep-alive
Content-Length: 11
Content-Type: text/plain;charset=UTF-8
Date: Wed, 26 Jul 2023 14:47:23 GMT
Keep-Alive: timeout=60@GetMapping
HTTP/1.1 200
Connection: keep-alive
Content-Length: 12
Content-Type: text/plain;charset=UTF-8
Date: Wed, 26 Jul 2023 14:47:23 GMT
Keep-Alive: timeout=60@PostMapping
HTTP/1.1 200
Connection: keep-alive
Content-Length: 11
Content-Type: text/plain;charset=UTF-8
Date: Wed, 26 Jul 2023 14:47:23 GMT
Keep-Alive: timeout=60@PutMapping
HTTP/1.1 200
Connection: keep-alive
Content-Length: 14
Content-Type: text/plain;charset=UTF-8
Date: Wed, 26 Jul 2023 14:47:23 GMT
Keep-Alive: timeout=60@DeleteMapping
HTTP/1.1 200
Connection: keep-alive
Content-Length: 13
Content-Type: text/plain;charset=UTF-8
Date: Wed, 26 Jul 2023 14:47:25 GMT
Keep-Alive: timeout=60@PatchMapping
HTTP/1.1 200
Connection: keep-alive
Content-Length: 27
Content-Type: text/plain;charset=UTF-8
Date: Wed, 26 Jul 2023 14:47:25 GMT
Keep-Alive: timeout=60@GetMapping({ "/bracket" })
HTTP/1.1 200
Connection: keep-alive
Content-Length: 46
Content-Type: text/plain;charset=UTF-8
Date: Wed, 26 Jul 2023 14:47:25 GMT
Keep-Alive: timeout=60@GetMapping(value={"/multiple", "/multiple/"})
HTTP/1.1 200
Connection: keep-alive
Content-Length: 46
Content-Type: text/plain;charset=UTF-8
Date: Wed, 26 Jul 2023 14:47:25 GMT
Keep-Alive: timeout=60@GetMapping(value={"/multiple", "/multiple/"})
HTTP/1.1 200
Connection: keep-alive
Content-Length: 35
Content-Type: text/plain;charset=UTF-8
Date: Wed, 26 Jul 2023 14:47:26 GMT
Keep-Alive: timeout=60@GetMapping({"/abcd/{id}"}); id=123
HTTP/1.1 200
Connection: keep-alive
Content-Length: 43
Content-Type: text/plain;charset=UTF-8
Date: Wed, 26 Jul 2023 14:47:26 GMT
Keep-Alive: timeout=60@GetMapping("/ant/{name:[a-z]+}"); name=ksg
HTTP/1.1 200
Connection: keep-alive
Content-Length: 53
Content-Type: text/plain;charset=UTF-8
Date: Wed, 26 Jul 2023 14:47:26 GMT
Keep-Alive: timeout=60@GetMapping("/regex/{number:^[0-9]+$}"); number=97031
```