Is it possible to run Spring Security from vaading4spring together with Vaadin Spring Boot? -
is possible run spring security vaading4spring vaadin spring boot?
when mix both @ build.gradle as
// 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")
new annotations (such @springui) not work.
when remove
compile("org.vaadin.spring:spring-vaadin:0.0.5.release") compile("org.vaadin.spring:spring-boot-vaadin:0.0.5.release")
from build.gradle,
i got exception says
caused by: org.springframework.beans.factory.nosuchbeandefinitionexception: no qualifying bean of type [org.vaadin.spring.http.httpservice] found dependency: expected @ least 1 bean qualifies autowire candidate dependency. dependency annotations: {@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 more
i appreciate help.
vaadin4spring 0.0.5 last standalone release , should use such (don't mix!). next version of vaadin4spring build on official spring vaadin addon, work in progress (details here: https://github.com/peholmst/vaadin4spring/issues/164)
for specific problem see https://github.com/peholmst/vaadin4spring/issues/206
for spring security example see vaadin4spring:
https://github.com/peholmst/vaadin4spring/tree/v0.0.5/samples/security-sample