Spring boot Spring boot 2.0.3.RELEASE,Spring数据休息,应用程序错误,无法启动

Spring boot Spring boot 2.0.3.RELEASE,Spring数据休息,应用程序错误,无法启动,spring-boot,spring-data-rest,Spring Boot,Spring Data Rest,无法启动spring启动应用程序 存储库及其关联域 import com.vircosolutions.mobileapi.domain.Awards; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.rest.core.annotation.RepositoryRestResource; @RepositoryRestResource(exported

无法启动spring启动应用程序

存储库及其关联域

import com.vircosolutions.mobileapi.domain.Awards;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;

@RepositoryRestResource(exported = false)
public interface AwardsRepository extends JpaRepository<Integer, 
Awards> {
}
}

主应用程序文件看起来像

@EnableSpringDataWebSupport
@SpringBootApplication
public class MobileApplication extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return super.configure(builder);
    }

    public static void main(String[] args) {
        SpringApplication.run(MobileApplication.class, args);
    }
}
我调试了很多次,但找不到根本原因。Stach跟踪如下所示。如果您需要任何其他文件和代码,可以提供。我们将非常感谢您的帮助

16:30:35341错误方法:[main]boot.SpringApplication (SpringApplication.java:842)-应用程序运行失败 org.springframework.beans.factory.unsatifiedDependencyException: 创建中定义了名为“repositorySearchController”的bean时出错 统一资源定位地址 [jar:file:/home/rashid/.m2/repository/org/springframework/data/spring-data-rest-webmvc/3.0.8.RELEASE/spring-data-rest-webmvc-3.0.8.RELEASE.jar!/org/springframework/data/rest/webmvc/RepositorySearchController.class]: 通过构造函数参数0表示的未满足依赖关系; 嵌套异常是 org.springframework.beans.factory.BeanCreationException:错误 正在创建类中定义的名为“pagedResourcesAssembler”的bean 路径资源 [org/springframework/data/rest/webmvc/config/RepositoryRestMvcConfiguration.class]: 通过工厂方法实例化Bean失败;嵌套异常是 org.springframework.beans.BeanInstantiationException:未能 实例化[org.springframework.data.web.PagedResourcesAssembler]: 工厂方法“pagedResourcesAssembler”引发异常;嵌套 例外情况为org.springframework.beans.factory.BeanCreationException: 创建在类路径中定义了名为“pageableResolver”的bean时出错 资源 [org/springframework/data/rest/webmvc/config/RepositoryRestMvcConfiguration.class]: 通过工厂方法实例化Bean失败;嵌套异常是 org.springframework.beans.BeanInstantiationException:未能 实例化 [org.springframework.data.web.PageableHandlerMethodArgumentResolver]: 工厂方法“pageableResolver”引发异常;嵌套异常是 org.springframework.beans.factory.BeanCreationException:错误 创建在类路径资源中定义了名为“sortResolver”的bean [org/springframework/data/rest/webmvc/config/RepositoryRestMvcConfiguration.class]: 通过工厂方法实例化Bean失败;嵌套异常是 org.springframework.beans.BeanInstantiationException:未能 实例化 [org.springframework.data.web.hateosordHandlerMethodArgumentResolver]: 工厂方法“sortResolver”引发异常;嵌套异常是 org.springframework.beans.factory.BeanCreationException:错误 正在创建类中定义的名为“repositoryRestConfiguration”的bean 路径资源 [org/springframework/data/rest/webmvc/config/RepositoryRestMvcConfiguration.class]: 通过工厂方法实例化Bean失败;嵌套异常是 org.springframework.beans.BeanInstantiationException:未能 实例化 [org.springframework.data.rest.core.config.RepositoryRestConfiguration]: 工厂方法“repositoryRestConfiguration”引发异常;嵌套 例外情况为org.springframework.beans.factory.BeanCreationException: 创建类路径中定义了名为“repositories”的bean时出错 资源 [org/springframework/data/rest/webmvc/config/RepositoryRestMvcConfiguration.class]: 通过工厂方法实例化Bean失败;嵌套异常是 org.springframework.beans.BeanInstantiationException:未能 实例化 [org.springframework.data.repository.support.Repositories]:工厂 方法“存储库”引发异常;嵌套异常是 org.springframework.beans.factory.BeanCreationException:错误 创建名为“awardsRepository”的bean:调用init方法 失败;嵌套异常是java.lang.IllegalArgumentException:不是 托管类型:位于的类java.lang.Integer org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:732) ~[spring-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE]at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:197) ~[spring-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE]at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1276) ~[spring-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE]at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1133) ~[spring-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE]at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543) ~[spring-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE]at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:503) ~[spring-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE]at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317) ~[spring-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE]at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE]at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315) ~[spring-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE]at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE]at org.springframework.beans.factory.support.DefaultListableBeanFactory.PreInstanceSingleton(DefaultListableBeanFactory.java:760) ~[spring-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE]at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:869) ~[spring-context-5.0.7.RELEASE.jar:5.0.7.RELEASE]
@EnableSpringDataWebSupport
@SpringBootApplication
public class MobileApplication extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return super.configure(builder);
    }

    public static void main(String[] args) {
        SpringApplication.run(MobileApplication.class, args);
    }
}
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2018-11-22
@RepositoryRestResource(exported = false)
public interface AwardsRepository extends JpaRepository<Awards, Integer> {
}