idea运行springboot项目没报错,打成jar包运行报错java.lang.IllegalArgumentException: name

idea运行springboot项目没报错,打成jar包运行java.lang.IllegalArgumentException: name

解决方法:

org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [com.bx.Application]; nested exception is java.lang.IllegalStateException: Error processing condition on org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration$WhitelabelErrorViewConfiguration

Caused by: java.lang.IllegalArgumentException: name

原因是我在application.yml中配置freemaeker的template-loader-path属性:http://www.yayihouse.com/yayishuwu/chapter/1673

猜你喜欢

转载自blog.csdn.net/qq_30908729/article/details/83933180
今日推荐