Good day! Please help me figure it out - I have a project that uses Spring MVС, and everything works fine until I connect telegram-spring-boot-starter.
Here is a list of my dependencies:
After adding telegram-spring-boot-starter, I get an error on startup:
2021-09-06 11:19:31.445 WARN 17095 --- [ restartedMain] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requestMappingHandlerAdapter' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter]: Factory method 'requestMappingHandlerAdapter' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mvcValidator' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.validation.Validator]: Factory method 'mvcValidator' threw exception; nested exception is javax.validation.NoProviderFoundException: Unable to create a Configuration, because no Bean Validation provider could be found. Add a provider like Hibernate Validator (RI) to your classpath.
2021-09-06 11:19:31.449 INFO 17095 --- [ restartedMain] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.catalina.loader.WebappClassLoaderBase (file:/home/lex/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/8.5.32/tomcat-embed-core-8.5.32.jar) to field java.io.ObjectStreamClass$Caches.localDescs
WARNING: Please consider reporting this to the maintainers of org.apache.catalina.loader.WebappClassLoaderBase
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
I still manage to start the application if I add the line to application.properties:
spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration
But at the same time, my MVC application does not behave as I expect. What needs to be done so that the telegram-spring-boot-starter connection does not affect my MVC application and its autotuning?
Good day! Please help me figure it out - I have a project that uses Spring MVС, and everything works fine until I connect telegram-spring-boot-starter. Here is a list of my dependencies:
After adding telegram-spring-boot-starter, I get an error on startup:
I still manage to start the application if I add the line to application.properties:
spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration
But at the same time, my MVC application does not behave as I expect. What needs to be done so that the telegram-spring-boot-starter connection does not affect my MVC application and its autotuning?