版权声明:. https://blog.csdn.net/WildestDeram/article/details/89765500
<default-config>
<property name="jdbcUrl">
jdbc:mysql://localhost:3306/dream1?useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true
</property>
<property name="user">root</property>
<property name="password">javaweb1361451916</property>
</default-config>
做为配置文件,&要写成&配置文件中&字符需要进行转义,所以写成&就相当于&。主要就是&符号的区别。