vaading4spring 运行 Spring Security 和 Vaadin Spring Boot 是否可以一起使用?

Is it possible to run Spring Security from vaading4spring together with Vaadin Spring Boot?

是否可以 运行 Spring vaading4spring 的安全性与 Vaadin Spring 引导一起?

当我在 build.gradle 将两者混合为

// Official VaadinSpring Integration
compile("com.vaadin:vaadin-spring:1.0.0.beta2")
compile("com.vaadin:vaadin-spring-boot:1.0.0.beta2")
compile("com.vaadin:vaadin-spring-boot-starter:1.0.0.beta2")

// Supporting (unofficial) vaadin4spring 
compile("org.vaadin.spring:spring-vaadin:0.0.5.RELEASE")
compile("org.vaadin.spring:spring-boot-vaadin:0.0.5.RELEASE")
compile("org.vaadin.spring:spring-vaadin-security:0.0.5.RELEASE")

新注释(例如@SpringUI)不起作用。

当我删除

compile("org.vaadin.spring:spring-vaadin:0.0.5.RELEASE")
compile("org.vaadin.spring:spring-boot-vaadin:0.0.5.RELEASE")

来自 build.gradle、

我有一个例外说

由以下原因引起:org.springframework.beans.factory.NoSuchBeanDefinitionException:没有为依赖项找到 [org.vaadin.spring.http.HttpService] 类型的合格 bean:预计至少有 1 个 bean 有资格作为此依赖项的自动装配候选者。依赖注解:{@org.springframework.beans.factory.annotation.Autowired(required=true)} 在 org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException(DefaultListableBeanFactory.java:1301) 在 org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1047) 在 org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:942) 在 org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:533) ... 还有 77 个

感谢任何帮助。

vaadin4spring 0.0.5 是最后一个独立版本,您应该这样使用它(不要混用!)。 vaadin4spring 的下一个版本将建立在官方 spring vaadin 插件的基础上,但这项工作正在进行中(有关此内容的详细信息:https://github.com/peholmst/vaadin4spring/issues/164

对于您的具体问题,请参阅 https://github.com/peholmst/vaadin4spring/issues/206

有关 spring 安全示例,请参阅 vaadin4spring:

https://github.com/peholmst/vaadin4spring/tree/v0.0.5/samples/security-sample