mybatis关于大于小于:元素内容必须由格式正确的字符数据或标记组成。
首先是原因:
mybatis中< >这两个符号会被识别为标签的开始和结束,用了就会报解析的错误
会报错类似下面这些
1.元素内容必须由格式正确的字符数据或标记组成。
2.Error creating bean with name 'mediaFileServiceImpl': Unsatisfied dependency expressed through field 'mediaProcessMapper'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mediaProcessMapper' defined in file....
解决方法:在XML中转义一下
< < > >
附加一个文心一言抽风


浙公网安备 33010602011771号