Are you using Spring Boot as well, @SeyedAli? If so, do you have a dependency on the axon-spring-boot-starter?
axon-spring-boot-starter
Having that dependency without any configuration next to it is sufficient for Axon Framework to connect to a default Axon Server set up.