Compare commits
2 Commits
857d97c142
...
da16ea9afe
Author | SHA1 | Date | |
---|---|---|---|
da16ea9afe | |||
fedc1029ce |
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,6 +4,7 @@ build/
|
||||
!gradle/wrapper/gradle-wrapper.jar
|
||||
!**/src/main/**/build/
|
||||
!**/src/test/**/build/
|
||||
application-dev.yml
|
||||
|
||||
### STS ###
|
||||
.apt_generated
|
||||
|
@ -11,12 +11,14 @@ import org.axonframework.commandhandling.CommandHandler
|
||||
import org.axonframework.eventsourcing.EventSourcingHandler
|
||||
import org.axonframework.modelling.command.AggregateIdentifier
|
||||
import org.axonframework.modelling.command.AggregateLifecycle
|
||||
import org.axonframework.serialization.Revision
|
||||
import org.axonframework.spring.stereotype.Aggregate
|
||||
import java.math.BigDecimal
|
||||
import java.util.UUID
|
||||
|
||||
@Aggregate
|
||||
class BankAccountAggregate() {
|
||||
@Revision("1.0")
|
||||
final class BankAccountAggregate() {
|
||||
@AggregateIdentifier
|
||||
private var id: UUID? = null
|
||||
private var balance: BigDecimal? = null
|
||||
|
@ -17,7 +17,6 @@ import java.util.concurrent.CompletableFuture
|
||||
class SwaggerConfiguration {
|
||||
@Bean
|
||||
fun apiDocket(): Docket {
|
||||
val ignoreClasses = arrayListOf(CompletableFuture::class.java).toTypedArray()
|
||||
return Docket(DocumentationType.SWAGGER_2)
|
||||
.select()
|
||||
.apis(
|
||||
@ -26,7 +25,6 @@ class SwaggerConfiguration {
|
||||
)
|
||||
.paths(PathSelectors.any())
|
||||
.build()
|
||||
.ignoredParameterTypes(*ignoreClasses)
|
||||
.apiInfo(apiInfo)
|
||||
}
|
||||
|
||||
|
@ -6,9 +6,9 @@ spring:
|
||||
name: axon-demo
|
||||
datasource:
|
||||
driverClassName: org.postgresql.Driver
|
||||
url: jdbc:postgresql://${POSTGRES_HOST:192.168.0.202}:${POSTGRES_PORT:5432}/${POSTGRES_DB:axon_demo}
|
||||
username: ${POSTGRES_USERNAME:cubetiq}
|
||||
password: ${POSTGRES_PASSWORD:Root$}
|
||||
url: jdbc:postgresql://${POSTGRES_HOST:localhost}:${POSTGRES_PORT:5432}/${POSTGRES_DB:axon_demo}
|
||||
username: ${POSTGRES_USERNAME:root}
|
||||
password: ${POSTGRES_PASSWORD:root}
|
||||
hikari:
|
||||
max-lifetime: 1800000
|
||||
connection-timeout: 30000
|
||||
@ -37,7 +37,7 @@ axon:
|
||||
serializer:
|
||||
general: jackson
|
||||
axonserver:
|
||||
servers: 192.168.0.202
|
||||
servers: localhost
|
||||
|
||||
logging:
|
||||
level.root: debug
|
Loading…
Reference in New Issue
Block a user