Commit 0cadfe69 by s_guodong

update

parent c22688d3
......@@ -144,7 +144,7 @@ public class ModuleInfoManager {
throw new NullPointerException("模型名不能为空");
if (cache.containsKey(moduleName))
return cache.get(moduleName);
try (InputStream stream = new ClassPathResource(path + moduleName + ".info").getInputStream()) {
try (InputStream stream = new ClassPathResource(path + moduleName.toLowerCase() + ".info").getInputStream()) {
Map map = new ObjectMapper().readValue(IOUtils.toString(stream, StandardCharsets.UTF_8), Map.class);
cache.put(moduleName, map);
return map;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment