File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
hango-api-plane-server/src/main/java/org/hango/cloud/configuration Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 2626import org .springframework .http .client .ClientHttpRequestInterceptor ;
2727import org .springframework .http .client .InterceptingClientHttpRequestFactory ;
2828import org .springframework .http .client .SimpleClientHttpRequestFactory ;
29+ import org .springframework .util .ResourceUtils ;
2930import org .springframework .web .client .RestTemplate ;
3031
3132import javax .annotation .PostConstruct ;
33+ import java .io .IOException ;
3234import java .time .Duration ;
3335import java .util .List ;
3436
@@ -89,7 +91,8 @@ ObjectMapper jsonObjectMapper() {
8991 }
9092
9193 @ PostConstruct
92- void configureFreemarkerConfig () {
94+ void configureFreemarkerConfig () throws IOException {
95+ freemarkerConfig .setDirectoryForTemplateLoading (ResourceUtils .getFile ("classpath:template" ));
9396 freemarkerConfig .setNumberFormat ("#" );
9497 freemarkerConfig .setSharedVariable ("indent" , new IndentationDirective ());
9598 freemarkerConfig .setSharedVariable ("ignore" , new IgnoreDirective ());
You can’t perform that action at this time.
0 commit comments