smcvb / gamerental Goto Github PK
View Code? Open in Web Editor NEWSample project for a Game Rental application as a showcase for Axon
Sample project for a Game Rental application as a showcase for Axon
Is there any issues maybe with the Axon Version 4.5.11
and the Spring Boot Version 2.6.4
?
***************************
APPLICATION FAILED TO START
***************************
Description:
The dependencies of some of the beans in the application context form a cycle:
┌──->──┐
| applicationConfig
└──<-──┘
Action:
Relying upon circular references is discouraged and they are prohibited by default. Update your application to remove the dependency cycle between beans. As a last resort, it may be possible to break the cycle automatically by setting spring.main.allow-circular-references to true.
The Application starts without the following Configurations in the ApplicationConfig
@Autowired
fun configureLoggingInterceptorFor(
commandBus: CommandBus,
loggingInterceptor: LoggingInterceptor<Message<*>?>
) {
commandBus.registerDispatchInterceptor(loggingInterceptor)
commandBus.registerHandlerInterceptor(loggingInterceptor)
}
@Autowired
fun configureLoggingInterceptorFor(eventBus: EventBus, loggingInterceptor: LoggingInterceptor<Message<*>?>?) {
eventBus.registerDispatchInterceptor(loggingInterceptor)
}
@Autowired
fun configureLoggingInterceptorFor(eventProcessingConfigurer: EventProcessingConfigurer, loggingInterceptor: LoggingInterceptor<Message<*>?>?) {
eventProcessingConfigurer.registerDefaultHandlerInterceptor { config: org.axonframework.config.Configuration?, processorName: String? -> loggingInterceptor }
}
@Autowired
fun configureLoggingInterceptorFor(queryBus: QueryBus, loggingInterceptor: LoggingInterceptor<Message<*>?>) {
queryBus.registerDispatchInterceptor(loggingInterceptor)
queryBus.registerHandlerInterceptor(loggingInterceptor)
}
Hey Steven,
Currently when I run the program and try to access the H2 console: localhost:8080/h2-console I get a 404 even though you have enabled it in the properties.
Apparently the H2 console is not autoconfigured by default when only using webflux so adding the spring mvc dependency resolved the problem and I can now see the console and connect using the string (jdbc:h2:./database;AUTO_SERVER=TRUE).
Just letting you know - I think you should either add the dependency:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
Or if you were connecting to the H2 database another way maybe add something to the README to describe it?
Regards,
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.