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