整合activiti報錯:Could not find class [org.springframework.boot.autoconfigure.security.SecurityAutoConfiguration]


起因

springboot整合activiti時,無法啟動出現此錯誤

SpringBoot: v2.2.10.RELEASE
Activiti: activiti-spring-boot-starter-basic 6.0.0

原因

暫時未知,猜測是兩者整合時需要的對security進行配置,且是必須要求的
排除就可以避免這個問題

解決方案

啟動類注解添加:
@SpringBootApplication(scanBasePackages="com.mgy",exclude = SecurityAutoConfiguration.class)

參考文章
啟動報錯Could not find class [org.springframework.boot.autoconfigure.security.SecurityAutoConfiguration]


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



猜您在找 springaop問題——Cannot subclass final class org.springframework.boot.autoconfigure.AutoConfigurationPackages$BasePackages Error creating bean with name 'persistenceExceptionTranslationPostProcessor' defined in class path resource [org/springframework/boot/autoconfigure/dao/PersistenceExceptionTranslationAutoConfiguration SpringBoot啟動報錯:Failed to introspect Class [org.springframework.boot.autoconfigure.transaction.TransactionAutoConfiguration] from ClassLoader [sun.misc.Launcher$AppClassLoader@4e0e2f2a] Spring Cloud 報錯:Error processing condition on org.springframework.boot.autoconfigure.freemarker.FreeMarkerServletWebConfiguration.freeMarkerConfigurer Eclipse:報錯Failed to read artifact descriptor for org.springframework.boot:spring-boot-autoconfigure:jar:2.1.2. 報錯"Parameter 0 of method stringRedisTemplate in org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration required a bean of type 'org.springframework.data.redis.connection.RedisConnec" Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method fail 修復 Could not find class [org.springframework.cloud.client.loadbalancer.LoadBalancerProperties] MyBatis Plus + Activiti 整合報錯:org.springframework.beans.factory.UnsatisfiedDependencyException springmvc上傳文件報錯org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.web.multipart.MultipartFile]
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM