错误1:web.xml的前缀
由于我是使用maven-web模板创建的maven项目,生成的web.xml文件版本过于老旧,前缀错误。需要改成:
<?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:dubbo="http://code.alibabatech.com/schema/dubbo"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://code.alibabatech.com/schema/dubbo http://code.alibabatech.com/schema/dubbo/dubbo.xsd">
错误2:注册中心错误
Failed to convert property value of type ‘java.lang.String’ to required type ‘java.lang.Boolean’ for
registry="N/A"
dubbo配置文件是registry不是register