问题标签 [vaadin-spring-boot]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
625 浏览

intellij-idea - 如何避免错误消息“MyApp.jar 中没有主要清单属性”?

当我尝试运行我在 Intellij Idea 中创建的(Vaadin Spring Boot)应用程序时:

...我收到以下错误消息:

“没有主要清单属性,在 MyApp.jar 中”

我尝试了与同一问题相关的帖子中提供的几个解决此问题的方法,但我不断收到此错误消息。

有人知道避免此错误消息的可靠方法吗?

顺便一提:

清单文件确实存在:

在此处输入图像描述

并具有以下内容:

************************************更新************* ************************

最小的例子:

使用 SpringInitializr ( https://start.spring.io ),我创建了一个名为 minimumExample2 的迷你应用程序。使用的 SpringInitializr 标签是:

在此处输入图像描述

创建 jar 文件后,项目结构如下所示:

在此处输入图像描述

MANIFEST.MF 文件的内容如下:

当我想使用

...我收到以下错误消息:

“没有主清单属性,在 minimumExample2.jar 中”

通过在 Springinitializr 中选择“Web”和“Vaadin”两个标签,然后单击“Generate Project”,您可以在几秒钟内轻松复制此应用程序。

0 投票
2 回答
7846 浏览

maven - “在 META-INF/spring.factories 中找不到自动配置类”

我在 intellij idea 中开发了一个 vaadin spring boot 应用程序。

尝试运行 jar 文件时,我不断收到以下错误:

“在 META-INF/spring.factories 中找不到自动配置类”


最小的例子:

使用 SpringInitializr ( https://start.spring.io ),可以在几秒钟内创建一个迷你应用程序来复制问题。使用的 SpringInitializr 标签是:“Web”和“Vaadin”。

创建 jar 文件时要小心(!!!):intellij idea 中有一个错误...通过将清单文件更改为 /$PROJECT_DIR/src/ 来删除清单文件的自动填充路径,请在此处查看 mgrandi 的回答:

在 IntelliJ IDEA 中创建一个可执行的 jar

使用运行应用程序时

您将收到以下错误消息:

“在 META-INF/spring.factories 中找不到自动配置类”

我怎样才能摆脱这个错误信息?

PS:

这是pom文件:

PPS:这里的建议不起作用:

SpringBoot - 制作 jar 文件 - 在 META-INF/spring.factories 中找不到自动配置类

**************************更新*********************** ******************

尝试使用命令构建应用程序时

我收到以下错误消息:

0 投票
1 回答
102 浏览

spring-boot - vaadin starter pack 许可证问题

我已经下载了 vaadin bakery 应用程序的源代码。它使用商业组件。但是,如果我从代码中删除这些组件(如果可能的话),我可以在不违反任何许可的情况下使用代码并分发它吗?

谢谢

0 投票
1 回答
192 浏览

vaadin - Vaadin 19 中的 VaadinWebSecurityConfigurerAdapter 发生了什么?

我们正在使用 Vaadin 19 Fusion 构建一个 Web 应用程序,我正在学习本教程: https ://vaadin.com/docs/latest/fusion/security/spring-login (我选择了 V19+ Docs,然后选择了 Fusion)

在本教程中,有一个VaadinWebSecurityConfigurerAdapter用于使用 Spring 设置安全性的参考,但该类在类路径中不可用。我尝试从 start.vaadin.com 下载一个简单的入门项目(v19),在这里我也无法使用VaadinWebSecurityConfigurerAdapter.

v19 中有替代方案还是我缺少依赖项?我有与启动项目相同的依赖树,所以我假设 pom 是正确的。

0 投票
1 回答
31 浏览

java - How to correctly add Vaadin framework into my Spring Boot project?

I am trying to integrate what is done in this official Vaadin video tutorial (implement back end push notification) into my Spring Boot project. I am finding some problem trying to understand how to correctly integrate Vaadin framework into my existing Spring Boot project pom.xml file in order to have all the dependencies needed to work.

So basically this is the video tutorial link: https://www.youtube.com/watch?v=M5sbGvW3S4I

and this is the related GitHub link of this tutorial example code: https://github.com/marcushellberg/fusion-push-notifications

This is the pom.xml of my already existing Spring Boot project where I need to insert Vaadin framework and the related example project dependencies (needed to implement the desired behavior)

In particular this is the pom.xml content of the previous Vaadin example (from the Vaadin GitHub example project repo):

I tried to adapt my original project pom.xml in this way:

But it seems not work, I am obtaining a lot of error on this new version of my pom.xml

What am I missing? How can I try to correctly add Vaading framework to my original Spring Boot project?