How to solve the problem that the template path is incorrect when Jfinal-undertow is executed under Intellij IDEA?
This article mainly explains how to solve the problem that the template path is incorrect when Jfinal-undertow is executed under Intellij IDEA. Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Now let the editor take you to learn how to solve the problem that the template path is incorrect when Jfinal-undertow is executed under Intellij IDEA.
The incorrect template path for Jfinal-undertow is solved!
Code tracking: through code tracking, it is found that the working directory of the executing program will affect the acquisition of the template path.
Main reason: incorrect work path performed by main.
Solution: modify the execution configuration and update the working directory to be consistent with the current project. For example, the directory configuration of module is as follows:
At this point, I believe you have a deeper understanding of "how to solve the incorrect template path when Jfinal-undertow is executed under Intellij IDEA". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!