Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'spring.thymeleaf.cache' in value "${spring.thymeleaf.cache}"
最近使用七牛云图片上传,只要test测试,发现就报错:
解决办法:把类中的这个@Value("${spring.thymeleaf.cache}")注释掉就行,测试的时候。
结果:
Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'spring.thymeleaf.cache' in value "${spring.thymeleaf.cache}"
最近使用七牛云图片上传,只要test测试,发现就报错:
解决办法:把类中的这个@Value("${spring.thymeleaf.cache}")注释掉就行,测试的时候。
结果: