今天在使用单元测试的时候报如下错误:
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [com.yuwei.ServerApplication]; nested exception is java.lang.IllegalArgumentException: Malformed \uxxxx encoding.
搜索了很多文章,后来发现把主配置文件中的路径 “” 改成 “/” 就好了。
参考文章:https://blog.51cto.com/ggmaster/221824