springboot启动不成功报空指针

当启动springboot时,突然死掉,有98%是配置文件的问题,代码中有用到的属性但在properties文件下没找到相关对应的属性,就会报错。报空指针就绝对是配置文件的问题了,去检查配置文件就好了

2018-12-22 23:11:00.343 [restartedMain] DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner - Creating MapperFactoryBean with name 'billNotepadMapper' and 'net.hycollege.yyy.bill.mapper.BillNotepadMapper' mapperInterface
2018-12-22 23:11:00.343 [restartedMain] DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner - Creating MapperFactoryBean with name 'billUserMapper' and 'net.hycollege.yyy.bill.mapper.BillUserMapper' mapperInterface
2018-12-22 23:11:00.343 [restartedMain] DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner - Creating MapperFactoryBean with name 'mapperBase' and 'net.hycollege.yyy.bill.mapper.MapperBase' mapperInterface
2018-12-22 23:11:01.128 [restartedMain] INFO  org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-8090"]
2018-12-22 23:11:01.135 [restartedMain] INFO  org.apache.catalina.core.StandardService - Starting service [Tomcat]
2018-12-22 23:11:01.135 [restartedMain] INFO  org.apache.catalina.core.StandardEngine - Starting Servlet Engine: Apache Tomcat/8.5.34
2018-12-22 23:11:01.138 [localhost-startStop-1] INFO  org.apache.catalina.core.AprLifecycleListener - The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [C:\Program Files\Java\jdk1.8.0_144\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\mysql\mysql-5.7.18-winx64\bin;C:\Program Files\Java\jdk1.8.0_144\bin;C:\Program Files\Java\jre1.8.0_144\bin;D:\idea\ideaIU-2018.2.5.win\plugins\maven\lib\maven3\bin;C:\Program Files\TortoiseSVN\bin;D:\service\nginx-1.15.5;C:\Program Files\Git\cmd;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;.]
2018-12-22 23:11:01.277 [localhost-startStop-1] INFO  org.apache.jasper.servlet.TldScanner - At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
2018-12-22 23:11:01.280 [localhost-startStop-1] INFO  o.a.c.c.ContainerBase.[Tomcat].[localhost].[/bill] - Initializing Spring embedded WebApplicationContext
java.lang.NullPointerException
2018-12-22 23:11:01.603 [restartedMain] INFO  org.apache.catalina.core.StandardService - Stopping service [Tomcat]

Process finished with exit code 0

  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值