找不到 vaadin css 文件
vaadin css file not found
我对 Vaadin 有点陌生,我使用的是 vaadin 13.0.13。我尝试使用我创建并放入 src/main/resources/com/example/demo
的 css 文件重构一些代码。
我遵循了文档 here。然而,正如您在下图中看到的,似乎 vaadin 没有读取该文件。
Is there a particular reason ? What should I do to add a css file in
my vaadin/spring project ?
谢谢。
根据您链接的文档中的评论:
Probably the place where it should be added same as for v10-v13 so: Non-Spring project: /src/main/webapp/frontend Spring project: /src/main/resources/META-INF/resources/frontend
因此,根据您的项目,可以是:
/src/main/webapp/frontend
(非spring)
/src/main/resources/META-INF/resources/frontend
(Spring 项目)
可以在此处找到有关静态资源正确位置的详细概述
您应该检查的部分是 Vaadin 10-13, Vaadin 14 in compatibility mode
我对 Vaadin 有点陌生,我使用的是 vaadin 13.0.13。我尝试使用我创建并放入 src/main/resources/com/example/demo
的 css 文件重构一些代码。
我遵循了文档 here。然而,正如您在下图中看到的,似乎 vaadin 没有读取该文件。
Is there a particular reason ? What should I do to add a css file in my vaadin/spring project ?
谢谢。
根据您链接的文档中的评论:
Probably the place where it should be added same as for v10-v13 so: Non-Spring project: /src/main/webapp/frontend Spring project: /src/main/resources/META-INF/resources/frontend
因此,根据您的项目,可以是:
/src/main/webapp/frontend
(非spring)/src/main/resources/META-INF/resources/frontend
(Spring 项目)
可以在此处找到有关静态资源正确位置的详细概述 Vaadin 10-13, Vaadin 14 in compatibility mode