Spring模板在Maven包后不加载

时间:2019-06-20 18:01:47

标签: java spring model-view-controller

当我通过eclipse运行spring应用程序时,它工作正常,但是当我构建jar并运行它时,为什么在spring之前找不到模板,为什么?

Project structure

使用Eclipse运行时,没有任何白标签,只有当我以Jar形式构建和运行时,

Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.

Thu Jun 20 14:56:40 BRT 2019
There was an unexpected error (type=Not Found, status=404).
/templates/produtos/lista.jsp

0 个答案:

没有答案