Some IA users reported that resource files could not be found when starting via the SprintBootApplication main method.

2.jpg

To investigate this issue, I specifically downloaded the IA Community dition.

  1. during the startup process, * logs were observed.

 SprintBootApplication - Starting SprintBootApplication on hostname with PID process ID (project path\publiccms-parent\publiccms\target\classes started by username in project path\publiccms-parent)

Because the files in the resource directory rely on the container's default servlet for deployment, it is necessary to ensure the correctness of the working path. In the logs above, the working path was set to IA's workspace path, which varies depending on different user configurations, leading to the failure to load resource files.

The solution is:

1.jpg

In the Run menu, find the Edit Configurations menu item, click Modify options to open the configuration options list, locate and click Working directory.

                                             

Select the Macros option on the far right, choose MOUDLE_DIR or select the physical path where the publiccms module is located.

 

Thanks to Public CMS - open Source Java CMS Group 3 (638756883) user 德军° for raising this issue.

 

标签:idea,PublicCMS

16条评论