Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ssis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Spring启动堆转储错误_Java_Spring_Spring Mvc_Spring Boot - Fatal编程技术网

Java Spring启动堆转储错误

Java Spring启动堆转储错误,java,spring,spring-mvc,spring-boot,Java,Spring,Spring Mvc,Spring Boot,我正在使用SpringBoot1.4.1,使用SpringBootGradle插件,因此它使用SpringFramework 4.3.3。加载我的应用程序时,我遇到了这个错误,这让我发疯: [timestamp=23:49:24.983] [thread="main"] [session="undefined"] [request="undefined"] [level=WARN ] [logger=o.s.b.c.e.AnnotationConfigEmbeddedWebApplication

我正在使用SpringBoot1.4.1,使用SpringBootGradle插件,因此它使用SpringFramework 4.3.3。加载我的应用程序时,我遇到了这个错误,这让我发疯:

[timestamp=23:49:24.983] [thread="main"] [session="undefined"] [request="undefined"] [level=WARN ] [logger=o.s.b.c.e.AnnotationConfigEmbeddedWebApplicationContext] [class=org.springframework.context.support.AbstractApplicationContext] [line=549] 
- Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'heapdumpMvcEndpoint': Could not bind properties to HeapdumpMvcEndpoint (prefix=endpoints.heapdump, ignoreInvalidFields=false, ignoreUnknownFields=true, ignoreNestedProperties=false); nested exception is org.springframework.validation.BindException: org.springframework.boot.bind.RelaxedDataBinder$RelaxedBeanPropertyBindingResult: 1 errors

***************************
APPLICATION FAILED TO START
***************************

Description:

Binding to target org.springframework.boot.actuate.endpoint.mvc.HeapdumpMvcEndpoint@29897daf failed:

    Property: endpoints.heapdump.path
    Value: null
    Reason: may not be null


Action:

Update your application's configuration
我不知道我的代码向你们展示了什么,这个错误让我很害怕。如果有人有任何想法,我可以开始发送构建文件、应用程序类等


该错误说明了一个名为“heapdumpMvcEndpoint”的bean和一个名为endpoints.heapdump.path的属性。我尝试将“endpoints.heapdump.path”添加到我的应用程序属性中,但它不起作用。

当我选中此选项时,“我可以看到
@ConfigurationProperties(value=“endpoints.heapdump”)
您可以尝试创建endpoints.heapdump文件并将提到的属性放在那里吗?我尝试创建endpoints.heapdump,和endpoints.heapdump.properties。我会再试一次,但没用。我不知道谁在这个问题上投了-1票。我讨厌那种人,当他们刚进来时,投-1票,没有任何评论、建议或理由。完全不一致且没有帮助。添加您的
应用程序。属性
。我们解决了此问题。我们必须将其放在属性文件中:endpoints.heapdump.enabled=false endpoints.logfile.enabled=false添加日志文件,因为在添加heapdump属性之后,日志文件开始出现。这是一个黑客,当然。。。如此悲伤。