Spring boot project startup error:
As Pavel Horal commented, don't use both <mvc:annotation-driven />
and @EnableWebMvc
together. That drives Spring mad when it tries to processe already enhanced classes where not-enhanced are expected, thus ClassCast. Simply use either of them.
There are old projects and configurations (xml configuration) that depend on the Spring boot project, @EnableWebMvc
just kill it