These are chat archives for spring-cloud/spring-cloud

16th
Sep 2017
Yang Lifan
@yanglifan
Sep 16 2017 03:00
Coudl Spring Cloud Finchley.M2 work with Spring Boot 2.0.0.M4. It seems cannot
org.springframework.boot.autoconfigure.web.servlet.error.ErrorController cannot be found
git.toutiao.im
@javahongxi
Sep 16 2017 08:36
hi, all
Dieter Hubau
@Turbots
Sep 16 2017 08:56
@yanglifan I’m upgrading my demo using Spring Boot 2 and Spring Cloud Finchley to the latest versions, I’ll let you know if I get it working
性感风行
@xingganfengxing
Sep 16 2017 17:05
hi all
china people
Chris Phillipson
@fastnsilver
Sep 16 2017 19:02

@Turbots and @yanglifan w/ latest spring boot 2.0 and cloud finchley snapshots i’ve had to add the following exclusions to my application.yml

# (2017-09-02) As of Spring Cloud Finchley.M2+ certain auto-config and config don't work, so disable!
# E.g., we get java.lang.NoClassDefFoundError: org/springframework/boot/actuate/endpoint/Endpoint
# or java.lang.NoClassDefFoundError: org/springframework/boot/autoconfigure/web/servlet/error/ErrorController 
# Also @see https://github.com/spring-projects/spring-boot/issues/10306
spring:  
  autoconfigure:
    exclude:
      - org.springframework.boot.autoconfigure.security.SecurityAutoConfiguration
      - org.springframework.cloud.autoconfigure.LifecycleMvcEndpointAutoConfiguration
      - org.springframework.cloud.autoconfigure.RefreshEndpointAutoConfiguration
      - org.springframework.cloud.netflix.hystrix.HystrixAutoConfiguration
      - org.springframework.cloud.stream.config.BindersHealthIndicatorAutoConfiguration
      - org.springframework.cloud.sleuth.metric.TraceMetricsAutoConfiguration
      - org.springframework.cloud.sleuth.instrument.web.TraceWebServletAutoConfiguration

to avoid NoClassDefFoundErrorissues. nothing like being on the bleeding edge.