File tree 1 file changed +4
-1
lines changed
hango-api-plane-server/src/main/java/org/hango/cloud/configuration
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 26
26
import org .springframework .http .client .ClientHttpRequestInterceptor ;
27
27
import org .springframework .http .client .InterceptingClientHttpRequestFactory ;
28
28
import org .springframework .http .client .SimpleClientHttpRequestFactory ;
29
+ import org .springframework .util .ResourceUtils ;
29
30
import org .springframework .web .client .RestTemplate ;
30
31
31
32
import javax .annotation .PostConstruct ;
33
+ import java .io .IOException ;
32
34
import java .time .Duration ;
33
35
import java .util .List ;
34
36
@@ -89,7 +91,8 @@ ObjectMapper jsonObjectMapper() {
89
91
}
90
92
91
93
@ PostConstruct
92
- void configureFreemarkerConfig () {
94
+ void configureFreemarkerConfig () throws IOException {
95
+ freemarkerConfig .setDirectoryForTemplateLoading (ResourceUtils .getFile ("classpath:template" ));
93
96
freemarkerConfig .setNumberFormat ("#" );
94
97
freemarkerConfig .setSharedVariable ("indent" , new IndentationDirective ());
95
98
freemarkerConfig .setSharedVariable ("ignore" , new IgnoreDirective ());
You can’t perform that action at this time.
0 commit comments