https://github.com/netbuffer/server-test-webapp
server test contains server info & server io etc
https://github.com/netbuffer/server-test-webapp
Last synced: 5 months ago
JSON representation
server test contains server info & server io etc
- Host: GitHub
- URL: https://github.com/netbuffer/server-test-webapp
- Owner: netbuffer
- Created: 2022-03-12T14:21:16.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-01-23T06:34:03.000Z (about 2 years ago)
- Last Synced: 2025-08-02T20:16:54.296Z (6 months ago)
- Language: Java
- Homepage: https://hub.docker.com/repository/docker/javawiki/server-test-webapp
- Size: 288 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# server-test-webapp
> echo server information/server io test ...
### docker images
* https://hub.docker.com/r/javawiki/server-test-webapp
* docker build -f Dockerfile -t javawiki/server-test-webapp:version .
* docker login
* docker push javawiki/server-test-webapp:version
* docker pull javawiki/server-test-webapp:version
* docker run -it --rm -p 9800:9800 javawiki/server-test-webapp:version
* docker run -it --rm -p 9800:9800 -e APP_VERSION=v1.1.0 -e TZ=Asia/Shanghai -e JAVA_OPTS=-XX:+PrintCommandLineFlags javawiki/server-test-webapp:1.1.0
### web api for test
* curl "http://localhost:9800/server/io/write?path=/root/test.txt&message=hello"
* curl "http://localhost:9800/server/io/read?path=/root/test.txt"
* curl "http://localhost:9800/server/info/properties"
* curl "http://localhost:9800/server/info/env"
* curl "http://localhost:9800/actuator/info"
* curl "http://localhost:9800/server/info/getProperty?key=info.app.version"
### Reference Documentation
For further reference, please consider the following sections:
* [Official Apache Maven documentation](https://maven.apache.org/guides/index.html)
* [Spring Boot Maven Plugin Reference Guide](https://docs.spring.io/spring-boot/docs/2.6.4/maven-plugin/reference/html/)
* [Create an OCI image](https://docs.spring.io/spring-boot/docs/2.6.4/maven-plugin/reference/html/#build-image)
* [Spring Web](https://docs.spring.io/spring-boot/docs/2.6.4/reference/htmlsingle/#boot-features-developing-web-applications)
### Guides
The following guides illustrate how to use some features concretely:
* https://docs.spring.io/spring-boot/docs/2.6.6/reference/htmlsingle/
* [Building a RESTful Web Service](https://spring.io/guides/gs/rest-service/)
* [Serving Web Content with Spring MVC](https://spring.io/guides/gs/serving-web-content/)
* [Building REST services with Spring](https://spring.io/guides/tutorials/bookmarks/)