Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shoothzj/springboot-basic-demo
SpringBoot基础特性Demo
https://github.com/shoothzj/springboot-basic-demo
Last synced: 10 days ago
JSON representation
SpringBoot基础特性Demo
- Host: GitHub
- URL: https://github.com/shoothzj/springboot-basic-demo
- Owner: shoothzj
- Created: 2019-10-31T02:08:22.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-01-08T15:07:35.000Z (almost 3 years ago)
- Last Synced: 2024-10-17T03:17:06.816Z (about 1 month ago)
- Language: Java
- Size: 33.2 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### swagger
https://www.baeldung.com/swagger-2-documentation-for-spring-rest-api
http://localhost:8080/v2/api-docs
http://localhost:8080/swagger-ui.html### SpringBoot Controller坑
- spring的request body并不支持空字段,空字段的DTO应属于设计上的问题### PropertySource
ProperySource这里有一个坑需要注意,yaml的层级关系,spring不会处理。
Spring从机制上只会处理key:value的形式,如
```yaml
shoot:
name: hzj
```
Spring只能解析出name:hzj,解析不出shoot.name:hzj