使用spring引导运行java应用程序文件时出错

使用spring引导运行java应用程序文件时出错,java,mysql,spring,spring-boot,intellij-idea,Java,Mysql,Spring,Spring Boot,Intellij Idea,我无法运行作为工作评估的应用程序。我按照他们的指示运行应用程序,但出现了此错误。他们的指令只是为数据库添加用户和密码。我找不到是哪个错误,因为我是spring框架的新手。我在intellij IDEA Ultimate上运行它 2020-08-28 15:18:09.347信息组publicsoft.springbootcrud.应用程序:50-在上启动应用程序 笔记本电脑-79766038,PID 6032(C:\Users\GeorgeD\IdeaProjects\public soft

我无法运行作为工作评估的应用程序。我按照他们的指示运行应用程序,但出现了此错误。他们的指令只是为数据库添加用户和密码。我找不到是哪个错误,因为我是spring框架的新手。我在intellij IDEA Ultimate上运行它


2020-08-28 15:18:09.347信息组publicsoft.springbootcrud.应用程序:50-在上启动应用程序
笔记本电脑-79766038,PID 6032(C:\Users\GeorgeD\IdeaProjects\public soft springbootcrud-
c061f40d0dbf\springbootcrud webapp\target\classes由GeorgeD在中启动
C:\Users\GeorgeD\IdeaProjects\public-soft-springbootcrud-c061f40d0dbf)
2020-08-28 15:18:09.349信息组publicsoft.springbootcrud.应用程序:679-以下配置文件
正在活动:dev
2020-08-28 15:18:09.389信息
org.springframework.boot.devtools.env.devtools属性defaultspostprocessor:227-devtools属性
默认激活!将“spring.devtools.add properties”设置为“false”以禁用
2020-08-28 15:18:09.389信息
org.springframework.boot.devtools.env.DevToolsPropertyDefaultsPostProcessor:227-用于其他web应用程序
相关日志记录考虑将“日志记录.Level .Web”属性设置为“调试”。
2020-08-28 15:18:09.501错误org.springframework.boot.SpringApplication:858-应用程序运行失败
java.lang.NoClassDefFoundError:org/springframework/boot/bind/RelaxedDataBinder
在
org.springframework.boot.autoconfigure.EnableAutoConfigurationImportSelector
.GetExcludeAutoConfiguration
属性(EnableAutoConfigurationImportSelector.java:179)位于
org.springframework.boot.autoconfigure。
EnableAutoConfigurationImportSelector.getExclutions(EnableAutoConfigurationImportSelector.java:172)
在
org.springframework.boot.autoconfigure。
EnableAutoConfigurationImportSelector.selectImports(EnableAutoConfigurationImportSelector.java:87)
在
org.springframework.context.annotation。
ConfigurationClassParser$DefaultDeferreImportSelectorGroup。
在org.springframework.context.annotation上处理(ConfigurationClassParser.java:892)。
ConfigurationClassParser$DeferreImportSelectorGroup。
getImports(ConfigurationClassParser.java:878)位于
org.springframework.context.annotation。
ConfigurationClassParser$DeferreImportSelectorGroupingHandler。
org.springframework.context.annotation上的processGroupImports(ConfigurationClassParser.java:804)。
ConfigurationClassParser$DeferreImportSelectorHandler.process(ConfigurationClassParser.java:774)
位于org.springframework.context.annotation.ConfigurationClassParser。
解析(ConfigurationClassParser.java:185)
org.springframework.context.annotation.ConfigurationClassPostProcessor。
processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:315)位于
org.springframework.context.annotation.ConfigurationClassPostProcessor。
postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:232)位于
org.springframework.context.support.PostProcessorRegistrationLegate。
位于的InvokeBeandDefinitionRegistryPostProcessors(postProcessorRegistrationLegate.java:275)
org.springframework.context.support。
后处理器RegistrationLegate.InvokeBeanFactory后处理器
(PostProcessorRegistrationLegate.java:95)
位于org.springframework.context.support.AbstractApplicationContext。
invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:705)位于
org.springframework.context.support.AbstractApplicationContext.refresh
(AbstractApplicationContext.java:531)位于org.springframework.boot.web.servlet。
refresh(ServletWebServerApplicationContext.java:142)
位于org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775)
位于org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
位于org.springframework.boot.SpringApplication.run(SpringApplication.java:316)
位于org.springframework.boot.SpringApplication.run(SpringApplication.java:1260)
位于org.springframework.boot.SpringApplication.run(SpringApplication.java:1248)
位于gr.publicsoft.springbootcrud.Application.main(Application.java:10)
位于java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(本机方法)
位于java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
位于java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl。
调用(DelegatingMethodAccessorImpl.java:43)
位于java.base/java.lang.reflect.Method.invoke(Method.java:566)
位于org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)
原因:java.lang.ClassNotFoundException:org.springframework.boot.bind.RelaxedDataBinder
位于java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
位于java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
位于java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
... 省略26个公共框架
---------------------------------------------------------------
文件夹中的pom.xml
-------------------------------------------------------------
弹簧靴积垢
gr.publicsoft.springbootcrud
1.0-快照
4.0.0
SpringBootCrudWebApp
1.8
${project.artifactId}-${project.version}
发展
真的
gr.publicsoft.springbootcrud
springbootcrud服务
${project.parent.version}
org.springframework.boot
SpringBootStarterWeb
org.springframework.boot
弹簧启动启动器数据rest
org.springframework.boot
弹簧起动试验
测试
org.springframework.boot
弹簧靴开发工具
真的
org.liquibase
液化酶核心
比特沃克
用户代理
1.21
org.springframework.boot
弹簧靴自动配置
1.4.1.1发布
 2020-08-28 15:18:09.347  INFO gr.publicsoft.springbootcrud.Application:50 - Starting Application on 
LAPTOP-79766038 with PID 6032 (C:\Users\GeorgeD\IdeaProjects\public-soft-springbootcrud- 
c061f40d0dbf\springbootcrud-webapp\target\classes started by GeorgeD in 
C:\Users\GeorgeD\IdeaProjects\public-soft-springbootcrud-c061f40d0dbf)
2020-08-28 15:18:09.349  INFO gr.publicsoft.springbootcrud.Application:679 - The following profiles 
are active: dev
2020-08-28 15:18:09.389  INFO 
org.springframework.boot.devtools.env.DevToolsPropertyDefaultsPostProcessor:227 - Devtools property 
defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
2020-08-28 15:18:09.389  INFO 
org.springframework.boot.devtools.env.DevToolsPropertyDefaultsPostProcessor:227 - For additional web 
related logging consider setting the 'logging.level.web' property to 'DEBUG'
2020-08-28 15:18:09.501 ERROR org.springframework.boot.SpringApplication:858 - Application run failed
java.lang.NoClassDefFoundError: org/springframework/boot/bind/RelaxedDataBinder
   at 


  org.springframework.boot.autoconfigure.EnableAutoConfigurationImportSelector
 .getExcludeAutoConfigurations 
     Property(EnableAutoConfigurationImportSelector.java:179) at
 org.springframework.boot.autoconfigure.
 EnableAutoConfigurationImportSelector.getExclusions(EnableAutoConfigurationImportSelector.java:172)
 at 
 org.springframework.boot.autoconfigure.
 EnableAutoConfigurationImportSelector.selectImports(EnableAutoConfigurationImportSelector.java:87)
 at 
 org.springframework.context.annotation.
 ConfigurationClassParser$DefaultDeferredImportSelectorGroup.
 process(ConfigurationClassParser.java:892) at org.springframework.context.annotation.
ConfigurationClassParser$DeferredImportSelectorGrouping.
getImports(ConfigurationClassParser.java:878) at 
org.springframework.context.annotation. 
ConfigurationClassParser$DeferredImportSelectorGroupingHandler.
processGroupImports(ConfigurationClassParser.java:804) at org.springframework.context.annotation.
ConfigurationClassParser$DeferredImportSelectorHandler.process(ConfigurationClassParser.java:774)
 at org.springframework.context.annotation.ConfigurationClassParser.
 parse(ConfigurationClassParser.java:185) at 
 org.springframework.context.annotation.ConfigurationClassPostProcessor.
processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:315) at 
org.springframework.context.annotation.ConfigurationClassPostProcessor.
postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:232) at 
org.springframework.context.support.PostProcessorRegistrationDelegate.
invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:275) at 
org.springframework.context.support.
PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors
(PostProcessorRegistrationDelegate.java:95)
at org.springframework.context.support.AbstractApplicationContext.
invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:705) at 
org.springframework.context.support.AbstractApplicationContext.refresh
(AbstractApplicationContext.java:531)at org.springframework.boot.web.servlet.
context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:316)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248)
at gr.publicsoft.springbootcrud.Application.main(Application.java:10)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.
invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)
Caused by: java.lang.ClassNotFoundException: org.springframework.boot.bind.RelaxedDataBinder
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
... 26 common frames omitted

   ---------------------------------------------------------------
    pom.xml inside folder
  -------------------------------------------------------------
 <?xml version="1.0" encoding="UTF-8"?>
 <project xmlns="http://maven.apache.org/POM/4.0.0"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
 http://maven.apache.org/xsd/maven-4.0.0.xsd">
 <parent>
    <artifactId>spring-boot-crud</artifactId>
    <groupId>gr.publicsoft.springbootcrud</groupId>
    <version>1.0-SNAPSHOT</version>
 </parent>
 <modelVersion>4.0.0</modelVersion>

 <artifactId>springbootcrud-webapp</artifactId>



  <properties>
    <java.version>1.8</java.version>
    <finalName>${project.artifactId}-${project.version}</finalName>
  </properties>

  <profiles>
     <profile>
         <id>dev</id>
         <activation>
             <activeByDefault>true</activeByDefault>
         </activation>
     </profile>
  </profiles>

  <dependencies>

    <dependency>
        <groupId>gr.publicsoft.springbootcrud</groupId>
        <artifactId>springbootcrud-service</artifactId>
        <version>${project.parent.version}</version>
    </dependency>

    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-web</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-data-rest</artifactId>
    </dependency>

    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-test</artifactId>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-devtools</artifactId>
        <optional>true</optional>
    </dependency>
    <dependency>
        <groupId>org.liquibase</groupId>
        <artifactId>liquibase-core</artifactId>
    </dependency>
    <dependency>
        <groupId>eu.bitwalker</groupId>
        <artifactId>UserAgentUtils</artifactId>
        <version>1.21</version>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-autoconfigure</artifactId>
        <version>1.4.1.RELEASE</version>
    </dependency>
</dependencies>

<build>
    <finalName>${finalName}</finalName>
    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
            <configuration>
            <executable>true</executable>
            </configuration>
        </plugin>
    </plugins>
 </build>

</project>

---------------------------------------------------------
 Second  pom.xml in project
----------------------------------------------------------

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <parent>
     <groupId>org.springframework.boot</groupId>
     <artifactId>spring-boot-starter-parent</artifactId>
     <version>2.1.4.RELEASE</version>
     <relativePath/> <!-- lookup parent from repository -->
  </parent>

  <groupId>gr.publicsoft.springbootcrud</groupId>
  <artifactId>spring-boot-crud</artifactId>
  <packaging>pom</packaging>
  <version>1.0-SNAPSHOT</version>

  <properties>
    <java.version>1.8</java.version>
  </properties>

  <modules>
    <module>springbootcrud-domain</module>
    <module>springbootcrud-service</module>
    <module>springbootcrud-webapp</module>
   </modules>

  <build>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <configuration>
                <source>1.8</source>
                <target>1.8</target>
            </configuration>
        </plugin>
    </plugins>
  </build>

</project>