Element 'configuration' cannot have character [children], because the type's content type is element-only.

helloworld_93634447
• 阅读 1456

整合springboot+mybatis时copy网上的配置,然后报错了。Element 'configuration' cannot have character [children], because the type's content type is element-only.           src/main/resources/generatorConfig.xml true true 百度了下说是去掉注释就可以了,试了试还是不行。 然后删除,自己手写了一下标签。发现可以了

点赞
收藏
评论区
推荐文章
Easter79 Easter79
2年前
spring注解
随着越来越多地使用Springboot敏捷开发,更多地使用注解配置Spring,而不是Spring的applicationContext.xml文件。Configuration注解:Spring解析为配置类,相当于spring配置文件Bean注解:容器注册Bean组件,默认id为方法名@Configurat
Stella981 Stella981
2年前
Spring Boot 之配置导入,强大到不行!
!(https://oscimg.oschina.net/oscnet/919770b743934540b4af2d826fb68b8b.png)我们知道在SpringBoot中可以用一个@Configuration配置文件来配置所有Bean及其他配置(不会的看这篇文章:Spring零配置之@Configuration注解
Stella981 Stella981
2年前
MyBatis Generator报错:Cannot instantiate object of type
\ERROR\Failedtoexecutegoalorg.mybatis.generator:mybatisgeneratormavenplugin:1.3.2:generate(defaultcli)onprojectmyssm:Executiondefaultcliofgoalorg.mybatis.gener
Stella981 Stella981
2年前
ELK学习笔记之配置logstash消费kafka多个topic并分别生成索引
0x00 filebeat配置多个topicfilebeat.prospectors:input_type:logencoding:GB2312fields_under_root:truefields:添加字段
Stella981 Stella981
2年前
Invalid property 'driver' of bean class [org.apache.commons.dbcp.BasicDataSource]
Spring整合MyBatis!main方法测试,出现异常:!(https://oscimg.oschina.net/oscnet/up5532e35c99469d9cfcd2bec483942cb367e.png)一堆错,很懵逼!别慌,慢慢分析,也许错误很简单;先分析一下applicationContext.xml文件
Wesley13 Wesley13
2年前
Java 各种文件类型的Content Type
contentType{"load":"text/html","123":"application/vnd.lotus123","3ds":"image/x3ds","3g2":"video/3gpp","3ga":"video/3gpp","3gp":"video/3gpp","3gpp"
Wesley13 Wesley13
2年前
@Slf4j 实现日志输入到外部文件
添加一个配置文件\\src\\main\\resources\\logbackspring.xml<?xmlversion"1.0"encoding"UTF8"?直接在代码中使用packageco
Wesley13 Wesley13
2年前
MYSQL查询用户下多个角色信息
<resultMapid"baseBeanUser"type"com...vo.system.TUserVoOut"<idcolumn"id"property"id"/<resultcolumn"name"property"name"/
Stella981 Stella981
2年前
MyBatis整合Spring的实现(18)
例子同一个命名空间,但是有2个配置文件,A配置文件依赖于B配置文件信息,但是在加载时,先加载B配置文件的话,那么就会报错,前面章节已经捕获了此异常并把相应的配置添加到Configuration(全局配置类)中,这里就是在加载A配置文件后,再次加载B配置文件,也就把B配置信息添加到Configuration(全局配置类)里,下面就来看一下代码吧。
Wesley13 Wesley13
2年前
MySQL导出表结构相关字段以及把字段由下划线转驼峰命名
SELECTCOLUMN_COMMENT中文名,UPPER(COLUMN_NAME)字段名,UPPER(DATA_TYPE)字段类型,CHARACTER_MAXIMUM_LENGTH长度,IS_NULLABLE是否为空FROMINFORMATION_
helloworld_93634447
helloworld_93634447
Lv1
梦里相思,故国王孙路。
文章
3
粉丝
0
获赞
0