Compare commits

..

No commits in common. "da16ea9afe3ade495e630052f4a634aa23da1370" and "857d97c1420aefd119e50a5ec46826f0f76ed142" have entirely different histories.

4 changed files with 7 additions and 8 deletions

1
.gitignore vendored
View File

@ -4,7 +4,6 @@ build/
!gradle/wrapper/gradle-wrapper.jar !gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/ !**/src/main/**/build/
!**/src/test/**/build/ !**/src/test/**/build/
application-dev.yml
### STS ### ### STS ###
.apt_generated .apt_generated

View File

@ -11,14 +11,12 @@ import org.axonframework.commandhandling.CommandHandler
import org.axonframework.eventsourcing.EventSourcingHandler import org.axonframework.eventsourcing.EventSourcingHandler
import org.axonframework.modelling.command.AggregateIdentifier import org.axonframework.modelling.command.AggregateIdentifier
import org.axonframework.modelling.command.AggregateLifecycle import org.axonframework.modelling.command.AggregateLifecycle
import org.axonframework.serialization.Revision
import org.axonframework.spring.stereotype.Aggregate import org.axonframework.spring.stereotype.Aggregate
import java.math.BigDecimal import java.math.BigDecimal
import java.util.UUID import java.util.UUID
@Aggregate @Aggregate
@Revision("1.0") class BankAccountAggregate() {
final class BankAccountAggregate() {
@AggregateIdentifier @AggregateIdentifier
private var id: UUID? = null private var id: UUID? = null
private var balance: BigDecimal? = null private var balance: BigDecimal? = null

View File

@ -17,6 +17,7 @@ import java.util.concurrent.CompletableFuture
class SwaggerConfiguration { class SwaggerConfiguration {
@Bean @Bean
fun apiDocket(): Docket { fun apiDocket(): Docket {
val ignoreClasses = arrayListOf(CompletableFuture::class.java).toTypedArray()
return Docket(DocumentationType.SWAGGER_2) return Docket(DocumentationType.SWAGGER_2)
.select() .select()
.apis( .apis(
@ -25,6 +26,7 @@ class SwaggerConfiguration {
) )
.paths(PathSelectors.any()) .paths(PathSelectors.any())
.build() .build()
.ignoredParameterTypes(*ignoreClasses)
.apiInfo(apiInfo) .apiInfo(apiInfo)
} }

View File

@ -6,9 +6,9 @@ spring:
name: axon-demo name: axon-demo
datasource: datasource:
driverClassName: org.postgresql.Driver driverClassName: org.postgresql.Driver
url: jdbc:postgresql://${POSTGRES_HOST:localhost}:${POSTGRES_PORT:5432}/${POSTGRES_DB:axon_demo} url: jdbc:postgresql://${POSTGRES_HOST:192.168.0.202}:${POSTGRES_PORT:5432}/${POSTGRES_DB:axon_demo}
username: ${POSTGRES_USERNAME:root} username: ${POSTGRES_USERNAME:cubetiq}
password: ${POSTGRES_PASSWORD:root} password: ${POSTGRES_PASSWORD:Root$}
hikari: hikari:
max-lifetime: 1800000 max-lifetime: 1800000
connection-timeout: 30000 connection-timeout: 30000
@ -37,7 +37,7 @@ axon:
serializer: serializer:
general: jackson general: jackson
axonserver: axonserver:
servers: localhost servers: 192.168.0.202
logging: logging:
level.root: debug level.root: debug