forked from micronaut-projects/micronaut-guides
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to use Serde for the Discovery consul guide (micronaut-project…
- Loading branch information
Showing
13 changed files
with
27 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ces-services-discover-consul/bookcatalogue/java/src/main/java/example/micronaut/Book.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...s-services-discover-consul/bookcatalogue/kotlin/src/main/kotlin/example/micronaut/Book.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
package example.micronaut | ||
|
||
import io.micronaut.core.annotation.Introspected | ||
import io.micronaut.serde.annotation.Serdeable | ||
import javax.validation.constraints.NotBlank | ||
|
||
@Introspected | ||
@Serdeable | ||
data class Book(@NotBlank val isbn: String, | ||
@NotBlank val name: String) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ces-discover-consul/bookinventory/java/src/main/java/example/micronaut/BookInventory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...s-discover-consul/bookinventory/kotlin/src/main/kotlin/example/micronaut/BookInventory.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
package example.micronaut | ||
|
||
import io.micronaut.core.annotation.Introspected | ||
import io.micronaut.serde.annotation.Serdeable | ||
import javax.validation.constraints.NotBlank | ||
|
||
@Introspected | ||
@Serdeable | ||
data class BookInventory(@NotBlank val isbn: String, | ||
val stock: Int) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ervices-discover-consul/bookrecommendation/java/src/main/java/example/micronaut/Book.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...er-consul/bookrecommendation/java/src/main/java/example/micronaut/BookRecommendation.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...vices-discover-consul/bookrecommendation/kotlin/src/main/kotlin/example/micronaut/Book.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
package example.micronaut | ||
|
||
import io.micronaut.core.annotation.Introspected | ||
import io.micronaut.serde.annotation.Serdeable | ||
import javax.validation.constraints.NotBlank | ||
|
||
@Introspected | ||
@Serdeable | ||
data class Book(@NotBlank val isbn: String, | ||
@NotBlank val name: String) |
4 changes: 2 additions & 2 deletions
4
...-consul/bookrecommendation/kotlin/src/main/kotlin/example/micronaut/BookRecommendation.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
package example.micronaut | ||
|
||
import io.micronaut.core.annotation.Introspected | ||
import io.micronaut.serde.annotation.Serdeable | ||
import javax.validation.constraints.NotBlank | ||
|
||
@Introspected | ||
@Serdeable | ||
data class BookRecommendation(@NotBlank val name: String) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters