To configure the datasors I use two classes with the annotation @Configuration . I collect the project maven. How can I tell mavena to take one datasors class in a production profile and another for a maiden?
UPD: in wildfly in the standalone.conf file I specify -Dspring.profiles.active=production , when starting the server I see that the option is registered in java_opts, then the application deployment and press enable, the operation crashes with org.jboss.msc.service.DuplicateServiceException: Service jboss.pojo.\"org.jboss.netty.internal.LoggerConfigurator\".DESCRIBED is already registered"}}