下面代码中java代码没有高亮上色,需要配置什么地方吗
图片见附件
获取文件
复制代码 File file = org.springframework.util.ResourceUtils.getFile("classpath:test.txt");
获取文件或流
复制代码 ClassPathResource classPathResource = new ClassPathResource("test.txt");
classPathResource.getFile();
classPathResource.getInputStream();