<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxrs="http://cxf.apache.org/jaxrs"
       xsi:schemaLocation="http://www.springframework.org/schema/beans 
                       http://www.springframework.org/schema/beans/spring-beans.xsd 
                       http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs-common.xsd">

将最后jaxrs-common.xsd改为jaxrs.xsd

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxrs="http://cxf.apache.org/jaxrs"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
                       http://www.springframework.org/schema/beans/spring-beans.xsd
                       http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd">

  

再次启动,Caused by: org.apache.cxf.service.factory.ServiceConstructionException: There is an endpoint already running on /rest.

相关文章:

  • 2022-12-23
  • 2021-06-28
  • 2021-08-22
  • 2022-01-01
  • 2022-01-01
  • 2021-12-18
  • 2021-07-23
  • 2021-06-13
猜你喜欢
  • 2022-12-23
  • 2021-10-08
  • 2022-12-23
  • 2021-07-22
  • 2021-10-21
  • 2021-04-11
  • 2022-12-23
相关资源
相似解决方案