Home > Back-end >  Springboot freemarker, just inside the page introduces a public module is an error
Springboot freemarker, just inside the page introduces a public module is an error

Time:03-01

 

14:40:38 2021-02-28. 9704-571 ERROR [nio - 8080 - exec - 1] freemarker. Runtime: ERROR executing a freemarker template

A freemarker. Core. _MiscTemplateException: Template inclusion failed (for the parameter value "../common FTL) :
"The Template not found for the name "../common FTL ".
Reason given: Backing out the from the root directory is not allowed.
The name was interpreted by this TemplateLoader: MultiTemplateLoader (loader1=FileTemplateLoader (baseDir="E: \ many_codes \ projects \ crm_zx \ target \ classes \ views", canonicalBasePath="E: \ many_codes \ projects \ crm_zx \ target \ classes \ views "), loader2=ClassTemplateLoader (resourceLoaderClass=org. Springframework. Web. Servlet. The freemarker. FreeMarkerConfigurer, basePackagePath=""/* relatively to resourceLoaderClass PKG */)).

-
FTL stack trace (" - "means nesting - related) :
- Failed at: # include "../common. FTL "[in the template" user/password. The FTL "at line 6, the column 5)
-
At a freemarker. Core. Include. Accept (Include. Java: 164) ~ [freemarker - 2.3.29. Jar: 2.3.29]
At a freemarker. Core. Environment. Visit (Environment. Java: 331) [freemarker - 2.3.29. Jar: 2.3.29]
At a freemarker. Core. Environment. Visit (Environment. Java: 337) [freemarker - 2.3.29. Jar: 2.3.29]
At a freemarker. Core. The Environment. The process (310) Environment. Java: [freemarker - 2.3.29. Jar: 2.3.29]
. At a freemarker template. The template. The process (383) template. Java: [freemarker - 2.3.29. Jar: 2.3.29]
The at org. Springframework. Web. Servlet. The freemarker. FreeMarkerView. ProcessTemplate (FreeMarkerView. Java: 391) [spring - webmvc - 5.2.2. The jar: 5.2.2. RELEASE]
The at org. Springframework. Web. Servlet. The freemarker. FreeMarkerView. DoRender (FreeMarkerView. Java: 304) [spring - webmvc - 5.2.2. The jar: 5.2.2. RELEASE]
The at org. Springframework. Web. Servlet. The freemarker. FreeMarkerView. RenderMergedTemplateModel (FreeMarkerView. Java: 255) [spring - webmvc - 5.2.2. The jar: 5.2.2. RELEASE]
The at org. Springframework. Web. Servlet. The AbstractTemplateView. RenderMergedOutputModel (AbstractTemplateView. Java: 179) [spring - webmvc - 5.2.2. The jar: 5.2.2. RELEASE]
The at org. Springframework. Web. Servlet. The AbstractView. Render (AbstractView. Java: 316) [spring - webmvc - 5.2.2. The jar: 5.2.2. RELEASE]
The at org. Springframework. Web. Servlet. DispatcherServlet. Render (DispatcherServlet. Java: 1373) [spring - webmvc - 5.2.2. The jar: 5.2.2. RELEASE]
The at org. Springframework. Web. Servlet. DispatcherServlet. ProcessDispatchResult (DispatcherServlet. Java: 1118) [spring - webmvc - 5.2.2. The jar: 5.2.2. RELEASE]
The at org. Springframework. Web. Servlet. DispatcherServlet. DoDispatch (DispatcherServlet. Java: 1057) [spring - webmvc - 5.2.2. The jar: 5.2.2. RELEASE]
The at org. Springframework. Web. Servlet. DispatcherServlet. DoService (DispatcherServlet. Java: 943) [spring - webmvc - 5.2.2. The jar: 5.2.2. RELEASE]
The at org. Springframework. Web. Servlet. FrameworkServlet. The processRequest (FrameworkServlet. Java: 1006) [spring - webmvc - 5.2.2. The jar: 5.2.2. RELEASE]
The at org. Springframework. Web. Servlet. FrameworkServlet. DoGet (FrameworkServlet. Java: 898) [spring - webmvc - 5.2.2. The jar: 5.2.2. RELEASE]
The at javax.mail. Servlet. HTTP. HttpServlet. Service (HttpServlet. Java: 634) [tomcat embed - core - 9.0.29. Jar: 9.0.29]
The at org. Springframework. Web. Servlet. FrameworkServlet. Service (FrameworkServlet. Java: 883) [spring - webmvc - 5.2.2. The jar: 5.2.2. RELEASE]
The at javax.mail. Servlet. HTTP. HttpServlet. Service (HttpServlet. Java: 741) [tomcat embed - core - 9.0.29. Jar: 9.0.29]
The at org. Apache. Catalina. Core. ApplicationFilterChain. InternalDoFilter (ApplicationFilterChain. Java: 231) [tomcat embed - core - 9.0.29. Jar: 9.0.29]
The at org. Apache. Catalina. Core. ApplicationFilterChain. DoFilter (ApplicationFilterChain. Java: 166) [tomcat embed - core - 9.0.29. Jar: 9.0.29]
At org, apache tomcat, websocket server WsFilter. DoFilter (53) WsFilter. Java: [tomcat embed - websocket - 9.0.29. Jar: 9.0.29]
The at org. Apache. Catalina. Core. ApplicationFilterChain. InternalDoFilter (ApplicationFilterChain. Java: 193) [tomcat embed - core - 9.0.29. Jar: 9.0.29]
The at org. Apache. Catalina. Core. ApplicationFilterChain. DoFilter (ApplicationFilterChain. Java: 166) [tomcat embed - core - 9.0.29. Jar: 9.0.29]
The at org. Springframework. Web. Filter. RequestContextFilter. DoFilterInternal (RequestContextFilter. Java: 100) [spring - web - 5.2.2. The jar: 5.2.2. RELEASE]
The at org. Springframework. Web. Filter. OncePerRequestFilter. DoFilter (OncePerRequestFilter. Java: 119) [spring - web - 5.2.2. The jar: 5.2.2. RELEASE]
The at org. Apache. Catalina. Core. ApplicationFilterChain. InternalDoFilter (ApplicationFilterChain. Java: 193) [tomcat embed - core - 9.0.29. Jar: 9.0.29]
The at org. Apache. Catalina. Core. ApplicationFilterChain. DoFilter (ApplicationFilterChain. Java: 166) [tomcat embed - core - 9.0.29. Jar: 9.0.29]
The at org. Springframework. Web. Filter. FormContentFilter. DoFilterInternal (FormContentFilter. Java: 93) [spring - web - 5.2.2. The jar: 5.2.2. RELEASE]
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related