使用不带Spring/CDI的纯Java Servlet创建一个新的Vaadin Flow 16/17项目 [英] Create a new Vaadin Flow 16/17 project using plain Java Servlets without Spring/CDI
问题描述
Vaadin文档建议手动使用Maven原型.但是 com.vaadin…
的Maven存储库似乎针对Vaadin 8及更早版本,而针对Vaadin 10及更高版本没有.
学习Maven的Vaadin页面显示了一个使用 viritin-vaadin-flow-archetype
作为原型.但是 Viritin 是第三方项目,会添加我目前不需要的库./p>
➥是否有一条仅使用普通Java Servlet即可在Jetty或Tomcat上运行而无需Spring/CDI的方式来启动新的Vaadin 16项目的途径?(或Vaadin 17预发布)
还是Vaadin Ltd公司决定现在仅支持Spring?(那将是最不幸的.)
至少是Maven原型 我应该更新该教程...谢谢您的提示. The starter page for Vaadin Flow has changed. That page now offers new projects configured only for Spring Boot. The previous version of this page offered an option for "Plain Java Servlet" as well as Spring/CDI. The Vaadin documentation suggests using a Maven archetype manually. But the Maven repositories for The Vaadin page on learning Maven shows an example using ➥ Is there an avenue to start a new Vaadin 16 project using only plain Java Servlets to be run on Jetty or Tomcat without Spring/CDI? (or Vaadin 17 pre-release) Or has the Vaadin Ltd company decided to support only Spring now? (That would be most unfortunate.) At least the Maven archetype I should update that tutorial... thanks for the hint on this. 这篇关于使用不带Spring/CDI的纯Java Servlet创建一个新的Vaadin Flow 16/17项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋! mvn原型:generate -DarchetypeGroupId = com.vaadin -DarchetypeArtifactId = vaadin-archetype-application -DarchetypeVersion = LATEST
com.vaadin…
appear to be aimed at Vaadin 8 and earlier, with none for Vaadin 10 and later.viritin-vaadin-flow-archetype
as an archetype. But Viritin is a third-party project, and would add libraries I do not presently need.vaadin-archetype-application
seems to be working for versions up to v16:mvn archetype:generate -DarchetypeGroupId=com.vaadin -DarchetypeArtifactId=vaadin-archetype-application -DarchetypeVersion=LATEST