you haven't missed anything in your configuration. the classcastexception is due to a bug in spring framework 5.0 rc3. it's been fixed in the latest snapshots. you could stick with your hack for now, or you could switch to using spring framework snapshots (that are available from https://repo.spring.io/snapshot ) by overriding spring.version in your pom.xml or build.gradle.

Related Query

  • ClassCastException NimbusJwtDecoder cannot be cast to NimbusJwtDecoderJwkSupport
  • ClassCastException: ServletRequestHandledEvent cannot be cast to WebServerInitializedEvent
  • Cannot be cast to class because they are in unnamed module of loader 'app'
  • java.lang.ClassCastException: javax.xml.bind.JAXBElement cannot be cast to
  • class java.time.LocalDateTime cannot be cast to class java.lang.String
  • java.lang.Object; cannot be cast to model class: error in Spring Boot
  • Spring-data-redis @Cacheable java.lang.ClassCastException: java.util.HashMap cannot be cast to java.lang.String
  • Logback giving error Cannot cast object '3 gb' with class 'java.lang.String' to class 'ch.qos.logback.core.util.FileSize'
  • Cannot be cast to class org.springframework.cloud.circuitbreaker.resilience4j.Resilience4JCircuitBreaker
  • Jpa Repository query - java.lang.Object; cannot be cast to model
  • org.gradle.initialization.DefaultSettings_Decorated cannot be cast to org.gradle.api.internal.project.ProjectInternal
  • Spring: ApplicationStartingEvent cannot be cast to ApplicationPreparedEvent for OptaPlanner Examination App
  • org.springframework.data.domain.PageImpl cannot be cast to
  • class org.springframework.security.core.userdetails.User cannot be cast
  • PostgresSQL + Spring JPA: org.postgresql.util.PSQLException: ERROR: cannot cast type bytea to timestamp without time zone
  • EntityManagerHolder cannot be cast to org.springframework.orm.hibernate5.SessionHolder
  • DefaultOidcUser cannot be cast to class CustomOAuth2User
  • java.lang.ClassCastException: com.mongodb.client.internal.AggregateIterableImpl cannot be cast to java.util.ArrayList
  • ClassCastException: org.hibernate.hql.internal.ast.tree.SqlNode cannot be cast to org.hibernate.hql.internal.ast.tree.PathNode
  • java.lang.ClassCastException: org.opensaml.core.xml.schema.impl.XSAnyBuilder cannot be cast to org.opensaml.xml.XMLObjectBuilder
  • Java.lang.ClassCastException: model class cannot cast to model class
  • class java.lang.Object cannot be cast to class Task when mocking Spring Repository with MockK
  • java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast or BeanUtils.copyProperties not working
  • Hibernate 5 Javassist ClassCastException: cannot be cast to javassist.util.proxy.Proxy
  • Error: "java.util.HashMap cannot be cast to Entity
  • How to avoid catching OutOfMemoryError in java and how to resolve class java.lang.OutOfMemoryError cannot be cast to class java.lang.Exception issue
  • Contact cannot be cast to org.springframework.core.io.support.ResourceRegion
  • org.eclipse.jetty.websocket.jsr356.server.ServerContainer cannot be cast to org.apache.tom cat.websocket.server.WsServerContaine
  • Spring Data Elasticsearch: java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.String
  • class java.util.LinkedHashMap cannot be cast to class java.lang.String (java.util.LinkedHashMap and java.lang.String
  • More Query from same tag

  • Trying to deserialize json array into java String using Jackson in Spring-boot
  • Gradle for this Spring Boot project + jsp
  • bootstrap.yml file in src/main/resources and src/test/resources
  • Ask the server api before any request in Angular
  • DOCKER error: Pull access denied for coffeeteareadb, repository does not exist or may require 'docker login'
  • Spring cloud config server not able to read property file
  • Spring Boot not starting HTTP listener
  • Spring annotation @Validated not working in kotlin class, same java code works
  • Unable to get updated values in a dynamically created form using Spring Boot and Thymeleaf
  • How to disable write operation for Jolokia in Spring boot?
  • Encoded password does not look like BCrypt in SpringBoot 2.1.4.RELEASE
  • Java 8 not able to write files in Macos Catalina
  • Pass string to static image reference in ApplicationAdvice
  • How to deploy Angular 7 front with Spring Boot backend
  • A question about the Spring-boot-starter-data-jpa
  • Use npm modules in spring boot application
  • Spring-boot ReloadableResourceBundleMessageSource not working
  • How to start and stop a google pubsub subsriber in spring boot app?
  • How can I ask a JMS server to resend the message when an exception occurs in a JMS listener defined with the @JmsListener annotation?
  • How to disable one annotation in java
  • Invalid CORS request using when using kickstart libraries
  • How to get webflux endpoint to serialize json with object name for each item
  • How to inject a controller class in another controller? how can i achive the method with helloworld() with "test/controller1/hello"?
  • How to make a subclass @Entity?
  • @Autowired field is null after trying suggestions
  • How to get data from query string in Java Spring boot REST
  • Error starting jHipster Microservices with consul
  • Grails 4 hot swap / recompile
  • Allow specific REST point without authentication
  • Hibernate Envers with Spring Boot - configuration
  •