解决dubbo配置中的Multiple annotations foundnat this line问题

我们在配置dubbo的时候dubbo的标签经常出现红色的叉

解决dubbo配置中的Multiple annotations foundnat this line问题

是因为我们eclipse没有配置dubbo约束

当然没有配置约束也不影响程序继续运行,但是有强迫症的我总是看不惯,所以想要把查查弄掉

eclipse 配置 dubbo约束

具体过程是:下载dubbo.xsd——>window——>preferences——>XML——>xmlcatalog——>——>User Specified——>ADD——>catalog entry_——>file System——>选择下载好的dubbo.xsd——>将key的值写为 http://code.alibabatech.com/schema/dubbo/dubbo.xsd

添加完毕后,右击dubbo的配置文件,选择validate

过程图如下

解决dubbo配置中的Multiple annotations foundnat this line问题

解决dubbo配置中的Multiple annotations foundnat this line问题

 

 

解决dubbo配置中的Multiple annotations foundnat this line问题

解决dubbo配置中的Multiple annotations foundnat this line问题

解决dubbo配置中的Multiple annotations foundnat this line问题

参考:https://blog.****.net/jinhu19/article/details/54346206/