2024-01-14 21:32:29 +00:00
|
|
|
# How construct `WebServices` with SpringBoot 3.2.1 and Java 17 (modern way)
|
2019-05-19 14:58:17 +00:00
|
|
|
|
|
|
|
## Run
|
|
|
|
```
|
|
|
|
mvn spring-boot:run -f pom.xml
|
2019-05-19 21:29:48 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## Example
|
|
|
|
```
|
|
|
|
curl -H "content-type: text/xml" -d @request.xml http://localhost:8080/ws
|
2019-05-19 22:21:02 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## Docker
|
|
|
|
```
|
|
|
|
docker build --rm -t ws .
|
|
|
|
docker run -ti --rm --name ws --network host ws
|
2024-01-14 21:32:29 +00:00
|
|
|
```
|