logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

eureka报错The method‘s class, javax.servlet.ServletContext, is available from the following locations

可以看到是javax.servlet.ServletContext类重复,分别去两个包下寻找getVirtualServerName()方法,可以看到在servlet-api-2.5.jar下没有该方法而tomcat-embed-core-9.0.41.jar有该方法,那么只要将servlet-api-2.5.jar屏蔽掉或者改为test就可以了很巧的是spring-cloud-starter-n

#eureka
到底了