## 配置实例参考
>在MLinkServer根目录下,有mlink-config.xml配置文件,可以参考以下的实例配置,根据自己的实际生产情况进行相应配置。
~~~
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<!-- 服务器类型可以设置为 jetty / tomcat / files -->
<server type="jetty">
<property name="host" value="localhost" />
<property name="port" value="8080" />
</server>
<dataSource type="mysql">
<property name="driver" value="com.mysql.jdbc.Driver" />
<property name="url" value="jdbc:mysql://192.168.1.91:3306/mytest_db?useUnicode=true&characterEncoding=UTF-8" />
<property name="username" value="admin" />
<property name="password" value="12345678" />
</dataSource>
<settings>
<!-- entity and template -->
<setting name="entityPackageName" value="cn.cantong.mlink.entity" />
<setting name="entityPrefix" value=cmm_" />
<setting name="entityPath" value="./entity/" />
<setting name="templatePackageName" value="cn.cantong.mlink.template" />
<setting name="templatePath" value="./template/" />
<!-- mapper -->
<setting name="mapperPath" value="./mapper/" />
<setting name="mapperSuffix" value="mapper.xml" />
<!-- other -->
<setting name="resultMaxRows" value="500" />
<setting name="threadPoolSize" value="1000" />
</settings>
</configuration>
~~~
> 详细的配置说明,请参考其它章节。