freemarker的 TemplateDirectiveModel,注入对象为空。
@Service
public class TestService {
public static String get() throws IOException {
return "sss";
}
public String getOne() throws IOException {
return "sss";
}
}
freemarker的 TemplateDirectiveModel,注入对象为空。
@Service
public class TestService {
public static String get() throws IOException {
return "sss";
}
public String getOne() throws IOException {
return "sss";
}
}
收起
spring boot 所有对象都需要注入
报告相同问题?