Mercurial > hg > SpringPlayground
annotate spring-boot-playground/src/main/java/de/comline/spring/model/json/Greeting.java @ 18:8504317b9a09
Erweiterung um Sleuth, manuelle Konfiguration von Spring
author | Dirk Olmes <dirk.olmes@codedo.de> |
---|---|
date | Thu, 17 Sep 2020 09:03:11 +0200 |
parents | 60afb461bf6c |
children |
rev | line source |
---|---|
1
60afb461bf6c
Import des Spring boot playground
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
1 package de.comline.spring.model.json; |
60afb461bf6c
Import des Spring boot playground
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
2 |
60afb461bf6c
Import des Spring boot playground
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
3 import com.fasterxml.jackson.annotation.JsonProperty; |
60afb461bf6c
Import des Spring boot playground
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
4 |
60afb461bf6c
Import des Spring boot playground
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
5 public class Greeting { |
60afb461bf6c
Import des Spring boot playground
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
6 @JsonProperty("msg") |
60afb461bf6c
Import des Spring boot playground
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
7 private String message; |
60afb461bf6c
Import des Spring boot playground
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
8 |
60afb461bf6c
Import des Spring boot playground
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
9 public Greeting(String message) { |
60afb461bf6c
Import des Spring boot playground
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
10 this.message = message; |
60afb461bf6c
Import des Spring boot playground
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
11 } |
60afb461bf6c
Import des Spring boot playground
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
12 |
60afb461bf6c
Import des Spring boot playground
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
13 public String getMessage() { |
60afb461bf6c
Import des Spring boot playground
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
14 return message; |
60afb461bf6c
Import des Spring boot playground
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
15 } |
60afb461bf6c
Import des Spring boot playground
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
16 } |