mybatis 项目配置 xml文件时 报错提示(The reference to entity "useSSL" must end with the ';'

2023-10-27

最近在配置mybatis项目的xml配置文件的时候,出现错误提示( The reference to entity “useSSL” must end with the ‘;’ delimiter.) 


报错行为:

 <!-- 配置库连接 -->
    <jdbcConnection 
    	driverClass="com.mysql.cj.jdbc.Driver"
        connectionURL="jdbc:mysql://localhost:3306/ssm_crud?serverTimezone=GMT&useSSL=false"
        userId="root"
        password="142014068">
    </jdbcConnection>


在没头没脑的一番探索后,终于发现问题,在xml文件中 &符号 需要转义 这个根据 HTML 的转义规则 更改就行 
& -> &amp; 于是便解决了


 <!-- 配置库连接 -->
    <jdbcConnection 
    	driverClass="com.mysql.cj.jdbc.Driver"
        connectionURL="jdbc:mysql://localhost:3306/ssm_crud?serverTimezone=GMT&amp;useSSL=false"
        userId="root"
        password="142014068">
    </jdbcConnection>


本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

mybatis 项目配置 xml文件时 报错提示(The reference to entity "useSSL" must end with the ';' 的相关文章

随机推荐