当启动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