简体   繁体   English

如何在 intellij 的现有项目中添加 vaadin 而不是 thymeleaf?

[英]How to add vaadin instead of thymeleaf in existing project in intellij?

I have few projects with vaadin created by spring.io and everything works.我有几个由 spring.io 创建的 vaadin 项目,一切正常。 Now I want to add vaadin to existing project, where I used thymeleaf.现在我想将 vaadin 添加到现有项目中,我在其中使用了 thymeleaf。 When I added vaadin maven dependencies and deleted thymeleaf dependency my classes see vaadin bibliotecs but it not compile.当我添加 vaadin maven 依赖项并删除 thymeleaf 依赖项时,我的类看到 vaadin bibliotecs 但它没有编译。 Intellij says that not found resources. Intellij 说没有找到资源。 I need to add sth more than dependiencies?我需要添加比依赖项更多的东西吗?

It looks like vaadin doesn't start at all, the application compilation takes 5 seconds, where in other applications with vaadin the application starts after more than 20 seconds.看起来 vaadin 根本没有启动,应用程序编译需要 5 秒,而在其他具有 vaadin 的应用程序中,应用程序会在 20 多秒后启动。

The easiest way would be to go to https://vaadin.com/start/latest and create a new project.最简单的方法是将 go 到https://vaadin.com/start/latest并创建一个新项目。

And then copy the old code to the new project.然后将旧代码复制到新项目中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM