Caused by: java.lang.NullPointerException
at org.springframework.boot.actuate.endpoint.DataSourcePublicMetrics.initialize(DataSourcePublicMetrics.java:64) ~[spring-boot-actuator-1.3.2.RELEASE.jar:1.3.2.RELEASE]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_79]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_79]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_79]
at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_79]
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:354) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE]
사용할 수없는 보조 데이터 소스 데이터베이스 연결이 너무 메트릭을 사용할 때 시작 없지만 메트릭을 사용할 경우에도 운이봄 부팅
endpoints.enabled=false
endpoints.autoconfig.enabled=false
endpoints.metrics.enabled=false
항상으로 작성되는 DataSourcePublicMetrics
콩,하지 않습니다. 이로 인해 데이터베이스 연결을 사용할 수 없을 때 NullPointerException
이 발생하여 스프링 부팅이 시작되지 않습니다.