2019-05-19 14:58:17 +00:00
|
|
|
# How construct `WebServices` with SpringBoot 2.1.5 RELEASE (modern way)
|
|
|
|
|
|
|
|
## 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
|
2019-05-19 14:58:17 +00:00
|
|
|
```
|