Ho un'applicazione primavera Boot e ottengo al momento del lancio i seguenti messaggi:Come gestire "Nome bean rifiutato - nessun percorso URL identificato" in primavera?
7701 [main] DEBUG o.s.w.s.h.BeanNameUrlHandlerMapping - Rejected bean name 'org.springframework.context.annotation.internalConfigurationAnnotationProcessor': no URL paths identified
7701 [main] DEBUG o.s.w.s.h.BeanNameUrlHandlerMapping - Rejected bean name 'org.springframework.context.annotation.internalAutowiredAnnotationProcessor': no URL paths identified
7701 [main] DEBUG o.s.w.s.h.BeanNameUrlHandlerMapping - Rejected bean name 'org.springframework.context.annotation.internalRequiredAnnotationProcessor': no URL paths identified
7701 [main] DEBUG o.s.w.s.h.BeanNameUrlHandlerMapping - Rejected bean name 'org.springframework.context.annotation.internalCommonAnnotationProcessor': no URL paths identified
7701 [main] DEBUG o.s.w.s.h.BeanNameUrlHandlerMapping - Rejected bean name 'org.springframework.context.annotation.internalPersistenceAnnotationProcessor': no URL paths identified
7701 [main] DEBUG o.s.w.s.h.BeanNameUrlHandlerMapping - Rejected bean name 'application': no URL paths identified
7701 [main] DEBUG o.s.w.s.h.BeanNameUrlHandlerMapping - Rejected bean name 'org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor': no URL paths identified
7701 [main] DEBUG o.s.w.s.h.BeanNameUrlHandlerMapping - Rejected bean name 'org.springframework.context.annotation.ConfigurationClassPostProcessor.enhancedConfigurationProcessor': no URL paths identified
7702 [main] DEBUG o.s.w.s.h.BeanNameUrlHandlerMapping - Rejected bean name 'bookingController': no URL paths identified
Ciò accade per ogni @Autowired
ho usato nella mia app.
L'unica configurazione per la mia domanda è:
@SpringBootApplication
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}
Tutte le idee perché ho ottenere quei messaggi?
Ho provato a google dopo quei messaggi e altri hanno detto che potrebbe trattarsi di un conflitto tra il gestore di annotazioni predefinito e il gestore di annotazioni personalizzate che non ho definito.
Queste sono le mie dipendenze Gradle
dependencies {
compile('org.springframework.boot:spring-boot-autoconfigure')
compile('org.springframework.boot:spring-boot-starter-web')
compile("org.springframework.boot:spring-boot-starter-data-rest")
compile('org.springframework.boot:spring-boot-starter-data-jpa')
compile('com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.6.1')
compile('org.springframework.boot:spring-boot-starter-security')
compile("mysql:mysql-connector-java:5.1.34")
testCompile("junit:junit")
testCompile("org.springframework.boot:spring-boot-starter-test")
testCompile("com.jayway.jsonpath:json-path")
testCompile("com.jayway.jsonpath:json-path-assert:0.9.1")
}
Nel mio percorso di classe non ho alcuna impostazione che possono caso.
ho aggiunto le mie dipendenze che uso a questo punto. – tzortzik
Puoi ignorare i messaggi, se guardi il messaggio che vedi sono solo informazioni di debug. Il 'BeanNameUrlHandlerMapping' controlla il nome del bean e controlla se quel nome può essere convertito in un URL. Questi messaggi sono puri per tua informazione e puoi (e dovresti) ignorarli poiché non c'è nulla che tu possa fare per loro. È possibile disabilitare la registrazione di debug e quindi non li vedrai. Quindi non ha nulla a che fare con le tue dipendenze o che cosa si comporta normalmente. –
In realtà ho avuto lo stesso problema (nella registrazione in modalità debug) per la mia applicazione: https://github.com/vdenotaris/spring-boot-security-saml-sample – vdenotaris