spring boot start error
2018-02-06 09:59:24.084 |-INFO  [restartedMain] tv.seei.manage.ManageApplication [48] -| Starting ManageApplication on USER-PC with PID 6588 (E:\ideaWorkspace\manage\target\classes started by Administrator in E:\ideaWorkspace\SpringBootSample01)
2018-02-06 09:59:24.087 |-INFO  [restartedMain] tv.seei.manage.ManageApplication [597] -| The following profiles are active: dev
2018-02-06 09:59:24.276 |-INFO  [background-preinit] org.hibernate.validator.internal.util.Version [30] -| HV000001: Hibernate Validator 5.3.6.Final
2018-02-06 09:59:25.267 |-INFO  [restartedMain] org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext [583] -| Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@c74731: startup date [Tue Feb 06 09:59:25 CST 2018]; root of context hierarchy
2018-02-06 09:59:28.826 |-INFO  [restartedMain] org.springframework.data.repository.config.RepositoryConfigurationDelegate [165] -| Multiple Spring Data modules found, entering strict repository configuration mode!
2018-02-06 09:59:28.976 |-INFO  [restartedMain] org.springframework.data.repository.config.RepositoryConfigurationDelegate [165] -| Multiple Spring Data modules found, entering strict repository configuration mode!
2018-02-06 09:59:29.085 |-INFO  [restartedMain] org.springframework.data.repository.config.RepositoryConfigurationExtensionSupport [270] -| Spring Data Redis - Could not safely identify store assignment for repository candidate interface tv.seei.manage.authorization.dao.UserDao.
2018-02-06 09:59:31.695 |-WARN  [restartedMain] org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext [551] -| Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is java.lang.NullPointerException
2018-02-06 09:59:31.714 |-INFO  [restartedMain] org.springframework.boot.autoconfigure.logging.AutoConfigurationReportLoggingInitializer [101] -| 

Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2018-02-06 09:59:31.745 |-ERROR [restartedMain] org.springframework.boot.SpringApplication [771] -| Application startup failed
org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is java.lang.NullPointerException
    at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:137)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:537)
    at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)
    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693)
    at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:303)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107)
    at tv.seei.manage.ManageApplication.main(ManageApplication.java:12)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)
Caused by: java.lang.NullPointerException: null
    at org.springframework.boot.autoconfigure.web.ServerProperties$Tomcat$1.customize(ServerProperties.java:878)
    at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.configureContext(TomcatEmbeddedServletContainerFactory.java:498)
    at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.prepareContext(TomcatEmbeddedServletContainerFactory.java:234)
    at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.getEmbeddedServletContainer(TomcatEmbeddedServletContainerFactory.java:178)
    at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.createEmbeddedServletContainer(EmbeddedWebApplicationContext.java:164)
    at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:134)
    ... 13 common frames omitted

6个回答

把enableautoconfiguration注解去掉再启动

junshao21
Scout_ 感谢,有效
4 个月之前 回复
sd1209286540
sd1209286540 回复永无止境I: 因为spring-boot-autoconfigure这个是自动装配的依赖,但是springboot里面自己封装了,再依赖可能会报错
一年多之前 回复
u013935114
永无止境I 多谢,困扰我两天的问题解决了
一年多之前 回复
u013935114
永无止境I 回复sd1209286540: 好了,在pom.xml 去掉 spring boot autoconfigure 就行了,这是为什么,之前这样都好好的,为什么今天就不行了
一年多之前 回复
sd1209286540
sd1209286540 回复永无止境I: 还有可能是因为你加了spring-boot-autoconfigure这个的原因,这个应该是不用加到依赖里面去的
一年多之前 回复
sd1209286540
sd1209286540 回复永无止境I: <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.0http://maven.apache.org/xsd/maven-4.0.0.xsd">把这个替换掉你的,而且那个springbootApplication注解含有enableautoconfiguration注解的功能
一年多之前 回复
u013935114
永无止境I 贴到下边了
一年多之前 回复
sd1209286540
sd1209286540 回复永无止境I: springboot启动是不需要这个注解的,你把pom里面的依赖以及application.propertiesw文件贴出来看看
一年多之前 回复
u013935114
永无止境I 百度看到一篇帖子说加上这个,加上了还是不行,去掉也是一样的错
一年多之前 回复

at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)
Caused by: java.lang.NullPointerException: null
at tv.seei.manage.ManageApplication.main(ManageApplication.java:12)
主要看这2个地方,有空指针

u013935114
永无止境I ManageApplication是启动类,看不出来 什么,也不知道是哪错了
一年多之前 回复

空指针错误,请查看你的 spring配置文件是否在web。xml里配置了,是否成功加载

u013935114
永无止境I 这是spring boot 没有web.xml配置文件的
一年多之前 回复
qq_35702591
小肥猪。 回复永无止境I: 你跟踪一下,如果注解注入的那个对象直接为null,那么需要在spring配置文件中 加入包扫描配置,<context:component-scan base-package=‘’>
一年多之前 回复
u013935114
永无止境I 回复qq_35702591: 好像没有,不知道 怎么解决,
一年多之前 回复
qq_35702591
小肥猪。 回复永无止境I: ManageApplication 开头的那个springBootApplication 注解,注入成功了吗,你的注解是否能够扫描的你这个java文件?
一年多之前 回复
u013935114
永无止境I spring boot 就是不知道 哪错了
一年多之前 回复

这是ManageApplication 启动类

 @SpringBootApplication
@EnableAutoConfiguration
public class ManageApplication {

    public static void main(String[] args) {
        SpringApplication.run(ManageApplication.class, args);
    }
}
sd1209286540
sd1209286540 把enableautoconfiguration注解去掉再启动
一年多之前 回复

pox.xml 配置文件

<?xml version="1.0" encoding="UTF-8"?>
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0

<groupId>tv.seei</groupId>
<artifactId>manage</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>

<name>manage</name>
<description>Demo project for Spring Boot</description>

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

<properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    <java.version>1.8</java.version>
</properties>

<dependencies>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-web</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>

    <!--redis-->
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-data-redis</artifactId>
    </dependency>

    <!-- mongodb -->
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-data-mongodb</artifactId>
    </dependency>

    <!--thymeleaf  -->
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-thymeleaf</artifactId>
    </dependency>

    <dependency>
        <groupId>org.projectlombok</groupId>
        <artifactId>lombok</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-autoconfigure</artifactId>
        <version>RELEASE</version>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-aop</artifactId>
    </dependency>

    <!--swagger 接口文档生成-->
    <dependency>
        <groupId>io.springfox</groupId>
        <artifactId>springfox-swagger2</artifactId>
        <version>2.7.0</version>
    </dependency>
    <dependency>
        <groupId>io.springfox</groupId>
        <artifactId>springfox-swagger-ui</artifactId>
        <version>2.7.0</version>
    </dependency>
</dependencies>

<build>
    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
            <configuration>
                <fork>true</fork>
            </configuration>
        </plugin>
    </plugins>
</build>


注解只要加@SpringBootApplication就够了
pom.xml可能写错了
建议用工具生成或者去自动生成spring boot demo 网站里按需要生成就不会有错了
其次是可能maven下载的包由于网络或者种种原因有问题(我学习的时候第一次就出现这种情况,另一台电脑就好好的)
把项目先关了再maven仓库删除了打开项目重新更新下maven就可以解决

u013935114
永无止境I 之前都是好好的,有几天没启动了,昨天启动报错,不想删maven本地库,下maven依赖好慢,
一年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
spring boot start error
2018-02-06 09:59:24.084 |-INFO [restartedMain] tv.seei.manage.ManageApplication [48] -| Starting ManageApplication on USER-PC with PID 6588 (E:\ideaWorkspace\manage\target\classes started by Administrator in E:\ideaWorkspace\SpringBootSample01)n 2018-02-06 09:59:24.087 |-INFO [restartedMain] tv.seei.manage.ManageApplication [597] -| The following profiles are active: devn 2018-02-06 09:59:24.276 |-INFO [background-preinit] org.hibernate.validator.internal.util.Version [30] -| HV000001: Hibernate Validator 5.3.6.Finaln 2018-02-06 09:59:25.267 |-INFO [restartedMain] org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext [583] -| Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@c74731: startup date [Tue Feb 06 09:59:25 CST 2018]; root of context hierarchyn 2018-02-06 09:59:28.826 |-INFO [restartedMain] org.springframework.data.repository.config.RepositoryConfigurationDelegate [165] -| Multiple Spring Data modules found, entering strict repository configuration mode!n 2018-02-06 09:59:28.976 |-INFO [restartedMain] org.springframework.data.repository.config.RepositoryConfigurationDelegate [165] -| Multiple Spring Data modules found, entering strict repository configuration mode!n 2018-02-06 09:59:29.085 |-INFO [restartedMain] org.springframework.data.repository.config.RepositoryConfigurationExtensionSupport [270] -| Spring Data Redis - Could not safely identify store assignment for repository candidate interface tv.seei.manage.authorization.dao.UserDao.n 2018-02-06 09:59:31.695 |-WARN [restartedMain] org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext [551] -| Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is java.lang.NullPointerExceptionn 2018-02-06 09:59:31.714 |-INFO [restartedMain] org.springframework.boot.autoconfigure.logging.AutoConfigurationReportLoggingInitializer [101] -| nn Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.n 2018-02-06 09:59:31.745 |-ERROR [restartedMain] org.springframework.boot.SpringApplication [771] -| Application startup failedn org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is java.lang.NullPointerExceptionn at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:137)n at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:537)n at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)n at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693)n at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360)n at org.springframework.boot.SpringApplication.run(SpringApplication.java:303)n at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118)n at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107)n at tv.seei.manage.ManageApplication.main(ManageApplication.java:12)n at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)n at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)n at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)n at java.lang.reflect.Method.invoke(Method.java:498)n at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)n Caused by: java.lang.NullPointerException: nulln at org.springframework.boot.autoconfigure.web.ServerProperties$Tomcat$1.customize(ServerProperties.java:878)n at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.configureContext(TomcatEmbeddedServletContainerFactory.java:498)n at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.prepareContext(TomcatEmbeddedServletContainerFactory.java:234)n at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.getEmbeddedServletContainer(TomcatEmbeddedServletContainerFactory.java:178)n at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.createEmbeddedServletContainer(EmbeddedWebApplicationContext.java:164)n at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:134)n ... 13 common frames omitted
Spring Boot 快速入门 (官方quick start)
NULL 博文链接:https://nassir.iteye.com/blog/2179459
MPC563 boot start 函数
MPC563 boot start 函数
error:$./oemctl start oms
error message:rn[main][2003-6-19:10:26:24:310] VdbSession.processError: database connection errorrn[main][2003-6-19:10:26:34:342] VdbSession.processError: errorCode >12541ORA-12541: TNS:no listenerrnrnwhy?Please help!rnThanks
Error listenerStart,org.apache.catalina.core.StandardContext start
请教一下大家,我现在学习SSH2开发,是Stuts2+Spring2.0+Hibernate3.2,Tomcat版本是5.0.当我部署项目的时候提示上面的错误,而且在浏览器中访问jsp页面提示是找不到资源的。在网上看了很多的,都无法解决问题,不知道什么原因,有高手指点一下吗?谢谢啊rn[code=C#]rn2011-3-7 21:16:46 org.apache.catalina.startup.HostConfig checkResourcesrn信息: Reloading context [/ssh]rn2011-3-7 21:16:46 org.apache.catalina.core.StandardContext stoprn信息: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/ssh] has not been startedrnlog4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax).rnlog4j:WARN Please initialize the log4j system properly.rn2011-3-7 21:16:52 org.apache.catalina.core.StandardContext startrn严重: Error listenerStartrn2011-3-7 21:16:52 org.apache.catalina.core.StandardContext startrn严重: Context [/ssh] startup failed due to previous errorsrnrn[/code]
error:$oemctl start oms!
error message:rn[main][2003-6-19:10:26:24:310] VdbSession.processError: database connection errorrn[main][2003-6-19:10:26:34:342] VdbSession.processError: errorCode >12541ORA-12541: TNS:no listenerrnrnwhy?Please help!rnThanks
Spring Boot启动报错ERROR 3644 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
##报错类型:rnrn###Field xxxDao in xxxServiceImpl required a bean of type xxx that could not be found.rnrn详细情况如下:rnrn```javarnrnrn . ____ _ __ _ _rn /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \rn( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \rn \\/ ___)| |_)| | | | | || (_| | ) ) ) )rn ' |____| .__|_| |_|_| |_\__, | / / / /rn =========|_|==============|___/=/_/_/_/rn :: Spring Boot :: (v2.0.2.RELEASE)rnrn2019-07-19 10:45:06.433 INFO 3644 --- [ main] com.meituan.hotel.Application : Starting Application on LAPTOP-2N82SD03 with PID 3644 (E:\CodeCache\IDEA\Webmagic\meituan-crawler-hotel\target\classes started by 三寸旧城七寸执念 in E:\CodeCache\IDEA\Webmagic\meituan-crawler-hotel)rn2019-07-19 10:45:06.435 INFO 3644 --- [ main] com.meituan.hotel.Application : No active profile set, falling back to default profiles: defaultrn2019-07-19 10:45:06.472 INFO 3644 --- [ main] ConfigServletWebServerApplicationContext : Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@197d671: startup date [Fri Jul 19 10:45:06 CST 2019]; root of context hierarchyrn2019-07-19 10:45:07.211 INFO 3644 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)rn2019-07-19 10:45:07.229 INFO 3644 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]rn2019-07-19 10:45:07.229 INFO 3644 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.5.31rn2019-07-19 10:45:07.232 INFO 3644 --- [ost-startStop-1] o.a.catalina.core.AprLifecycleListener : Loaded APR based Apache Tomcat Native library [1.2.21] using APR version [1.6.5].rn2019-07-19 10:45:07.232 INFO 3644 --- [ost-startStop-1] o.a.catalina.core.AprLifecycleListener : APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].rn2019-07-19 10:45:07.232 INFO 3644 --- [ost-startStop-1] o.a.catalina.core.AprLifecycleListener : APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]rn2019-07-19 10:45:07.235 INFO 3644 --- [ost-startStop-1] o.a.catalina.core.AprLifecycleListener : OpenSSL successfully initialized [OpenSSL 1.1.1a 20 Nov 2018]rn2019-07-19 10:45:07.351 INFO 3644 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContextrn2019-07-19 10:45:07.351 INFO 3644 --- [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 882 msrn2019-07-19 10:45:07.459 INFO 3644 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean : Servlet dispatcherServlet mapped to [/]rn2019-07-19 10:45:07.462 INFO 3644 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'characterEncodingFilter' to: [/*]rn2019-07-19 10:45:07.462 INFO 3644 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]rn2019-07-19 10:45:07.462 INFO 3644 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'httpPutFormContentFilter' to: [/*]rn2019-07-19 10:45:07.462 INFO 3644 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'requestContextFilter' to: [/*]rn2019-07-19 10:45:07.490 WARN 3644 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'hotelInfoServiceImpl': Unsatisfied dependency expressed through field 'hotelInfoDao'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.meituan.hotel.Dao.HotelInfoDao' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: @org.springframework.beans.factory.annotation.Autowired(required=true)rn2019-07-19 10:45:07.492 INFO 3644 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]rn2019-07-19 10:45:07.504 INFO 3644 --- [ main] ConditionEvaluationReportLoggingListener : rnrnError starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.rn2019-07-19 10:45:07.573 ERROR 3644 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter : rnrn***************************rnAPPLICATION FAILED TO STARTrn***************************rnrnDescription:rnrnField hotelInfoDao in com.meituan.hotel.Service.impl.HotelInfoServiceImpl required a bean of type 'com.meituan.hotel.Dao.HotelInfoDao' that could not be found.rnrnrnAction:rnrnConsider defining a bean of type 'com.meituan.hotel.Dao.HotelInfoDao' in your configuration.rnrnrnProcess finished with exit code 1rnrn```rnrnrn### 最近网项目里面加了个模块,模块是基于gradle的工程,我本身的工程是基于maven的,没有导成功,我就把那个模块删除掉了,但是运行就出问题了,网上搜了很多,但是我的注解都加了,而且目录结构也没有问题,Application.class也的确在包的最外层。rnrn## 希望有大佬帮忙解答一下
Spring cloud spring boot spring boot admin
Spring cloud spring boot spring boot admin。spring demo,
apache+fastcgi, http 500 error, fastcgi start error
各位好, 请教一个问题,rnrn我在嵌入式平台上移植了apache+php+fastcgi, httpd启动后,html可以正常访问,但对于php的请求,就会出错,HTTP 500 Internal Server Error;rnrn察看error log,显示fastcgi启动后,php-cgi can't load library 'libz.so.1', 但我的lib目录下已经放了libz的库文件。rnrn而且单独执行php-cgi 是没问题的,php-cgi -v显示正常;rnrntest.phprnrnrnrn运行php-cgi test.php也可以正确解析。rnrn以下是err logrnrn# cat /var/apache/logs/error_logrn[Thu Jan 01 00:11:48 1970] [notice] Digest: generating secret for digest authentication ...rn[Thu Jan 01 00:11:48 1970] [notice] Digest: donern[Thu Jan 01 00:11:48 1970] [warn] pid file /var/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?rn[Thu Jan 01 00:11:48 1970] [notice] Apache/2.2.29 (Unix) DAV/2 mod_fastcgi/2.4.6 configured -- resuming normal operationsrn[Thu Jan 01 00:11:48 1970] [notice] FastCGI: process manager initialized (pid 3837)rn[Thu Jan 01 00:11:48 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" started (pid 3843)rn/fss/gw/bin/php-cgi: can't load library 'libz.so.1'rn[Thu Jan 01 00:11:48 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" (pid 3843) terminated by calling exit with status '16'rn[Thu Jan 01 00:11:49 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" started (pid 3848)rn/fss/gw/bin/php-cgi: can't load library 'libz.so.1'rn[Thu Jan 01 00:11:49 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" (pid 3848) terminated by calling exit with status '16'rn[Thu Jan 01 00:11:50 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" started (pid 3853)rn/fss/gw/bin/php-cgi: can't load library 'libz.so.1'rn[Thu Jan 01 00:11:50 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" (pid 3853) terminated by calling exit with status '16'rn[Thu Jan 01 00:11:51 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" started (pid 3862)rn/fss/gw/bin/php-cgi: can't load library 'libz.so.1'rn[Thu Jan 01 00:11:51 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" (pid 3862) terminated by calling exit with status '16'rn[Thu Jan 01 00:11:51 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 secondsrn[Thu Jan 01 00:11:51 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 secondsrn[Thu Jan 01 00:11:51 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 secondsrn[Thu Jan 01 00:11:51 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 secondsrn[Thu Jan 01 00:11:51 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 secondsrn[Thu Jan 01 00:11:51 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 secondsrn[Thu Jan 01 00:11:51 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 secondsrn[Thu Jan 01 00:11:51 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 secondsrn[Thu Jan 01 00:11:51 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 secondsrn[Thu Jan 01 00:11:51 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 secondsrn[Thu Jan 01 00:11:52 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 secondsrn[Thu Jan 01 00:11:52 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 secondsrn[Thu Jan 01 00:11:52 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 secondsrn[Thu Jan 01 00:11:52 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 secondsrn[Thu Jan 01 00:11:52 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 secondsrn[Thu Jan 01 00:11:52 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 secondsrn[Thu Jan 01 00:11:52 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 secondsrn[Thu Jan 01 00:11:52 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 secondsrn[Thu Jan 01 00:11:52 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 secondsrn[Thu Jan 01 00:11:52 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds
Spring Boot项目启动MongoDB报错java.io.IOException: Could not start process
大家好!rnrn本人在用Spring Boot + MongoDB开发一个项目的时候,出现下面这个错误:rnjava.io.IOException: Could not start process: rn at de.flapdoodle.embed.mongo.AbstractMongoProcess.onAfterProcessStart(AbstractMongoProcess.java:79)rnrn。。。rnrn看上去是MongoDB没能启动起来。这个报错前面的log是这样的:rn[code=html]rn2018-10-11 07:26:02.937 INFO 19376 --- [ Thread-3] o.s.b.a.mongo.embedded.EmbeddedMongo : note: noprealloc may hurt performance in many applicationsrn2018-10-11 07:26:02.939 INFO 19376 --- [ Thread-3] o.s.b.a.mongo.embedded.EmbeddedMongo : 2018-10-11T07:26:02.870+0800 I CONTROL [initandlisten] MongoDB starting : pid=17744 port=55804 dbpath=C:\Users\EDDIEYOU\AppData\Local\Temp\embedmongo-db-724bbc45-0667-4ab9-a8b7-d40b90e3437f 32-bit host=Dell-Inspironrn2018-10-11 07:26:02.939 INFO 19376 --- [ Thread-3] o.s.b.a.mongo.embedded.EmbeddedMongo : 2018-10-11T07:26:02.871+0800 I CONTROL [initandlisten] targetMinOS: Windows Vista/Windows Server 2008rn2018-10-11 07:26:02.939 INFO 19376 --- [ Thread-3] o.s.b.a.mongo.embedded.EmbeddedMongo : 2018-10-11T07:26:02.871+0800 I CONTROL [initandlisten] db version v3.2.2rn2018-10-11 07:26:02.939 INFO 19376 --- [ Thread-3] o.s.b.a.mongo.embedded.EmbeddedMongo : 2018-10-11T07:26:02.871+0800 I CONTROL [initandlisten] git version: 6e71d0d568e134c029203593b00a0103e7cdf30brn2018-10-11 07:26:02.939 INFO 19376 --- [ Thread-3] o.s.b.a.mongo.embedded.EmbeddedMongo : 2018-10-11T07:26:02.871+0800 I CONTROL [initandlisten] allocator: tcmallocrn2018-10-11 07:26:02.939 INFO 19376 --- [ Thread-3] o.s.b.a.mongo.embedded.EmbeddedMongo : 2018-10-11T07:26:02.871+0800 I CONTROL [initandlisten] modules: nonern2018-10-11 07:26:02.939 INFO 19376 --- [ Thread-3] o.s.b.a.mongo.embedded.EmbeddedMongo : 2018-10-11T07:26:02.871+0800 I CONTROL [initandlisten] build environment:rn2018-10-11 07:26:02.939 INFO 19376 --- [ Thread-3] o.s.b.a.mongo.embedded.EmbeddedMongo : 2018-10-11T07:26:02.871+0800 I CONTROL [initandlisten] distarch: i386rn2018-10-11 07:26:02.939 INFO 19376 --- [ Thread-3] o.s.b.a.mongo.embedded.EmbeddedMongo : 2018-10-11T07:26:02.871+0800 I CONTROL [initandlisten] target_arch: i386rn2018-10-11 07:26:02.940 INFO 19376 --- [ Thread-3] o.s.b.a.mongo.embedded.EmbeddedMongo : 2018-10-11T07:26:02.871+0800 I CONTROL [initandlisten] options: net: bindIp: "127.0.0.1", http: enabled: false , port: 55804 , security: authorization: "disabled" , storage: dbPath: "C:\Users\EDDIEYOU\AppData\Local\Temp\embedmongo-db-724bbc45-0667-4ab9-a8b7-d40b90e3437f", journal: enabled: false , mmapv1: preallocDataFiles: false, smallFiles: true , syncPeriodSecs: 0.0 rn2018-10-11 07:26:02.940 INFO 19376 --- [ Thread-3] o.s.b.a.mongo.embedded.EmbeddedMongo : 2018-10-11T07:26:02.872+0800 I STORAGE [initandlisten] exception in initAndListen: 28663 Cannot start server. The default storage engine 'wiredTiger' is not available with this build of mongod. Please specify a different storage engine explicitly, e.g. --storageEngine=mmapv1., terminatingrn2018-10-11 07:26:02.940 INFO 19376 --- [ Thread-3] o.s.b.a.mongo.embedded.EmbeddedMongo : 2018-10-11T07:26:02.872+0800 I CONTROL [initandlisten] dbexit: rc: 100rn2018-10-11 07:26:02.945 ERROR 19376 --- [ main] d.f.e.process.runtime.AbstractProcess : failed to call onAfterProcessStart()rnrn[/code]rn这个项目是Gradle的,编译什么的都没有问题。rnbuild.gradle文件如下:rn[code=html]rnbuildscript // buildscript 代码块中脚本优先执行rnrn // ext 用于定义动态属性rn ext rn springBootVersion = '2.0.3.RELEASE'rn rnrn // 使用了 Maven 的中央仓库(也可以指定其他仓库)rn repositories rn //mavenCentral()rn maven url "https://repo.spring.io/snapshot" rn maven url "https://repo.spring.io/milestone" rn maven url "http://maven.aliyun.com/nexus/content/groups/public/" rn rnrn // 依赖关系rn dependencies rnrn // classpath 声明说明了在执行其余的脚本时,ClassLoader 可以使用这些依赖项rn classpath("org.springframework.boot:spring-boot-gradle-plugin:$springBootVersion")rn rnrnrn// 使用插件rnapply plugin: 'java'rnapply plugin: 'eclipse'rnapply plugin: 'org.springframework.boot'rnapply plugin: 'io.spring.dependency-management'rnrn// 指定了生成的编译文件的版本,默认是打成了 jar 包rnversion = '1.0.0'rnrn// 指定编译 .java 文件的 JDK 版本rnsourceCompatibility = 1.8rnrn// 使用了 Maven 的中央仓库(也可以指定其他仓库)rnrepositories rn //mavenCentral()rn maven url "https://repo.spring.io/snapshot" rn maven url "https://repo.spring.io/milestone" rn maven url "http://maven.aliyun.com/nexus/content/groups/public/" rnrnrn// 依赖关系rndependencies rnrn // 该依赖用于编译阶段rn compile('org.springframework.boot:spring-boot-starter-web')rn rn // 添加 Thymeleaf 的依赖rn compile('org.springframework.boot:spring-boot-starter-thymeleaf')rnrn // 添加 Spring Data Mongodb 的依赖rn compile('org.springframework.boot:spring-boot-starter-data-mongodb')rn rn // 添加 Embedded MongoDB 的依赖用于测试rn compile('de.flapdoodle.embed:de.flapdoodle.embed.mongo')rn rn // 该依赖用于测试阶段rn testCompile('org.springframework.boot:spring-boot-starter-test')rnrnrn[/code]rn请大家帮忙看下,到底是哪里的问题?谢谢!
Spring: Microservices with Spring Boot
Microservices helps in decomposing applications into small services and move away from a single monolithic artifact. It helps in building systems that are scalable, flexible, and high resilient. Spring Boot helps in building REST-oriented, production-grade microservices. This book is a quick learning guide on how to build, monitor, and deploy microservices with Spring Boot. You'll be first familiarized with Spring Boot before delving into building microservices. You will learn how to document your microservice with the help of Spring REST docs and Swagger documentation. You will then learn how to secure your microservice with Spring Security and OAuth2. You will deploy your app using a self-contained HTTP server and also learn to monitor a microservice with the help of Spring Boot actuator. This book is ideal for Java developers who knows the basics of Spring programming and want to build microservices with Spring Boot. This book is embedded with useful assessments that will help you revise the concepts you have learned in this book. This book is repurposed for this specific learning experience from material from Packt's Mastering Spring 5.0 by Ranga Rao Karanam.
spring boot + spring cloud
主要是介绍微服务的,spring boot + spring cloud,文档中有下载地址,
Spring MVC和Spring Boot
<p>rn <span>本套课程由CSDN学院与咕泡学院共同打造,主要会围绕</span>Spring Boot初遇、基本常识、注解和源码分析以及进阶4个方面。即使你之前从来没有用过Spring Boot也没关系,课程会带领你从0到进阶一步步提升,让你对Spring Boot爱不释手,同时了解Spring Boot的原理和源码。rn</p>
【Spring Boot】(15)、Spring Boot错误处理机制
1、Spring Boot默认的错误处理机制如果是浏览器,则返回一个默认的错误页面:如果是其他测试工具,如Postman,则返回一个json数据:原理:​ 可以参照ErrorMvcAutoConfiguration,错误处理的自动配置类。该自动配置类给容器中添加了以下几个组件:1)、ErrorPageCustomizer:错误页面定制器@Bean public ErrorPageCustomize...
Spring boot学习笔记 003——Spring boot持久层
后续笔记将更新。
Spring Boot学习(十):Spring Boot 与缓存
这里是一个学习过程笔记的汇总:Spring Boot学习汇总 缓存,我们应该已经很熟悉了。那么今天就来学习一下Spring Boot中怎么使用缓存。 1、说起缓存,先来了解下JSR107 首先什么是JSR?         JSR是Java Specification Requests 的缩写 ,Java规范请求,故名思议提交Java规范,大家一同遵守这个规范的话,会让大家‘沟通’起来更加...
Spring Boot系列(一)——初识Spring Boot
-
Spring Boot学习——Spring Boot相关概念
Spring Boot相关概念        前面的JavaWeb项目的例子,几乎全部基于Spring。Spring对于JavaWeb开发确实是一场革命性的进步,把开发者从EJB的重量级中解放出来。Spring为大多数业务场景都提供了解决方案,但Spring还是需要很多配置和依赖,特别是依赖,如果版本不兼容,还可能会产生一些很难检查出来的异常。不是说这些库的设计者不想兼容,而是有时候项目太过复杂
Spring Boot的前世今生及Spring Boot的入门
导言(本文分为两部分): 一.有关Spring Boot的认识(这是基础的知识,主要是介绍MVC框架,如果不感兴趣也可以直接跳到第二部分) 二.提供学习Spring Boot的方向,及如何在IDE中构建Spring Boot的项目, 第一部分 很多人要问Spring Boot到底是什么,其实大家不用紧张,Spring Boot不是新的一门技术,它就是默认...
Spring Boot————Spring Boot启动流程分析
一、引言 Spring Boot 的启动虽然仅仅是执行了一个main方法,但实际上,运行流程还是比较复杂的,其中包含几个非常重要的事件回调机制。在实际生产开发中,有时候也会利用这些启动流程中的回调机制,做一些项目初始化的工作,比如内存初始化等。所以,学习Spring Boot启动流程非常重要。 二、启动流程概述 SpringApplication.run(Object, String...)...
spring boot spring could
学习spring boot的一个简单demo 导入eclipse可以直接使用,希望我的分享能帮助到你
【Spring】Spring Boot 系列文章
Spring Boot系列文章
四本 spring boot书籍(spring boot 四件套)
包含Learning Spring Boot ,Spring Boot Cookbook, Spring Boot in Action,Spring Boot in Action中文版 四本书,希望您喜欢!
从零开始学Spring Boot(Spring Boot技术文档)
从零开始学Spring Boot(Spring Boot技术文档)
spring boot(三)spring boot的配置文件详解
文章目录一、核心配置文件1.1添加默认属性1.2添加自定义属性1.3读取核心配置文件1.3.1使用@ConfigurationProperties批量读取属性1.3.2使用@Value读取单个属性1.3.3@ConfigurationProperties和@Value的区别二、自定义配置文件 我们在开发一个项目时,肯定会用到配置文件,spring boot为我们提供了丰富的外部配置,常见的有: ...
Spring Boot(四)Spring Boot 中的定时任务
一.SpringBoot中开启定时任务 在spirngboot中使用定时任务非常简单,只需要在启动类上增加一个@EnableScheduling注解即可。 @SpringBootApplication @EnableScheduling public class Application { public static void ...
spring boot学习笔记——spring boot工程的搭建
一、搭建spring boot工程 1.首先new-&amp;gt;other...选择Spring starter Project,如图所示: 2.点击next,输入相关信息 选择所属工程,如图 3.点击finsh,完成工程创建,如图所示: 这样一个spring boot工程就搭建完成了 可以观察到spring boot的工程 有三层结构:  main/java 中存放的一...
Spring Boot学习笔记(一)Spring Boot入门
一、什么是Spring Boot Spring Boot是用来简化spring相关应用的搭建以及开发过程,约定大于配置,去繁从简。目前Spring框架非常多,常用的:spring MVC、Spring Data、Spring Security等等。按照我们以前的做法,如果要整合这么多的技术,我们需要导入所以相关包、写许多的配置,过程非常的繁琐。而现在使用Spring Boot,就可以省去这麻烦,因...
Spring Boot 实践 第三章 Spring boot 的日志配置
上一章我们介绍了spring boot的基本配置, 这一章我们就说说spring boot的日志. spring boot 封装了多种日志输出的库, 下面以最主流的slf4j做例子, 聊聊spring boot的日志配置的方法和技巧. 1.引入POM依赖 由于spring boot 已经将日志模块放置到基础框架里了,所以我们不需要在pom引入日志的模块了。 2.在YML中引入logba...
Spring Boot学习第二篇:Spring Boot特性
Spring Boot特性构建MavenMaven用户可以继承spring-boot-starter-parent项目来获取默认设置。该父项目提供以下特性: 默认编译级别为Java 1.6 源码编码为UTF-8 一个依赖管理节点,允许你省略普通依赖的标签,继承自spring-boot-dependencies POM。 合适的资源过滤 合适的插件配置(exec插件,sur
【Spring Boot】【第一波】 Spring Boot简介
Spring Boot 简化了基于Spring的应用开发,只需要“run”就能创建一个独立的、生产级别的Spring应用。Spring Boot为Spring平台及第三方库提供开箱即用的设置(提供默认设置),这样我们就可以简单的开始。多数Spring Boot应用只需要很少的Spring配置。
Spring Boot官方文档学习——使用Spring Boot
1. 简述    本文将详细介绍如何使用Spring Boot。本文将覆盖系统构建、自动配置、如何运行应用。还会包含一些Spring Boot最佳实践。尽管Spring Boot没有什么特殊的地方(它仅仅是你可以使用的一个类库而已)但是仍然有一些意见你可以采纳。这些意见将会使得你的开发更加容易一些。2. 构建系统    强烈建议您选择支持依赖管理的构建系统,并且可以使用发布到“Maven Cent...
spring boot之创建第一个Spring boot项目
spring boot项目搭建
Spring Boot实践 第二章 Spring boot 的配置文件
前一章 我们创建了第一个spring boot 程序,  这一章分享一下spring boot的配置方式和一些技巧. spring boot 的特性之一就是 配置简单. spring boot不再使用之前spring 的xml配置方式,  xml的配置方式太复杂,且相互引用很麻烦.   spring boot 提供两种配置文件方式 ,一种是 *.properties方式. 另一种是*....
Spring Boot(一) 第一个Spring Boot项目
简介 以前我们用SSM来开发项目的时候,需要先进行开发环境的搭建,例如确定技术框架及版本,还有各框架之间的兼容性问题,在经过繁琐的配置之后,还要测试框架是否能正常运行,才能将项目给到项目成员进行开发。该方式不仅抵消,而且浪费大量的时间。Spring Boot正式为了取代这些繁琐的工作而生的。Spring Boot是由Pivotal团队提供的全新框架,其设计目的是用来简化新Spring应用的初始搭...
spring boot
spring boot , spring boot 实战.可以学习springboot 深入了解
Spring Boot
基于Spring Boot 的图书管理系统。整合了MyBatis、mysql、SpringMVC、Log4j2)、模拟了RESTful端点的暴露与发现、模拟了Spring batch的使用
Spring boot
Spring boot + Mybatis + Thymeleaf + Druid +MySql 整合
相关热词 c++和c#哪个就业率高 c# 批量动态创建控件 c# 模块和程序集的区别 c# gmap 截图 c# 验证码图片生成类 c# 再次尝试 连接失败 c#开发编写规范 c# 压缩图片好麻烦 c#计算数组中的平均值 c#获取路由参数