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

时间:2017-03-07 12:02:22

标签: java spring eclipse maven spring-mvc

我正在尝试使用Spring的Spring Boot应用程序创建一个可执行的jar文件。我在pom.xml中的插件位于

之下
import { TestBed, async } from '@angular/core/testing';
import {APP_BASE_HREF}    from '@angular/common';
...
...
beforeEach(() => {
TestBed.configureTestingModule({
  imports: [
    ...
  ],
  declarations: [
    AppComponent,
    ...
  ],
  providers: [
    {provide: APP_BASE_HREF, useValue: '/'}
  ]
});

我得到的完整错误是:

    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
            <configuration>
                <fork>true</fork>
                <mainClass>nl.insiteweb.acc.Application</mainClass>
            </configuration>
            <executions>
                <execution>
                    <goals>
                        <goal>repackage</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
    </plugins>

我不知道我在这里做错了什么。我试图用Eclipse中的Export创建一个可执行的JAR文件。非常感谢所有帮助。

0 个答案:

没有答案
相关问题