@Autowired는 스프링 부트 응용 프로그램을 배포 할 때 null을 제공하지만 스프링 부트의 임베디드 바람둥이를 사용할 때 제대로 작동합니다. 도움이 필요하십니까?봄 부팅 @Autowired Tomcat에 배포 할 때 주석이 작동하지 않습니다.
<?xml version="1.0" encoding="UTF-8"?>
http://maven.apache.org/xsd/maven-4.0.0.xsd을 "> 4.0.0 flexedge - CSS 전쟁 flexedge - CSS 영사 서비스 스케줄러 닷컴. flexedge.css flexedge-CSS-BOM 0.2.0 UTF-8 UTF-8 1.8 만약 angel-애드온,http://maven.vaadin.com/vaadin-addons 사실
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</dependency>
<dependency>
<groupId>com.vaadin.tapio</groupId>
<artifactId>googlemaps</artifactId>
<version>1.3.4</version>
</dependency>
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
</dependency>
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
</dependency>
<dependency>
<groupId>com.flexedge.css</groupId>
<artifactId>flexedge-css-ejb</artifactId>
<version>0.2.0</version>
</dependency>
<dependency>
<groupId>org.freemarker</groupId>
<artifactId>freemarker</artifactId>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-bom</artifactId>
<version>7.7.3</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
공식 문서에 설명 된 모든 단계를 수행 했습니까? http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#howto-create-a-deployable-war-file – Tome