thinkgem / jeesite

Java rapid development platform, based (Spring Boot, Spring MVC, Apache Shiro, MyBatis, Beetl, Bootstrap, AdminLTE), online code generation, including modules: Organization, role users, menu and button authorization, data permissions, system parameters, content management, workflow, etc. Loose coupling design is adopted; one key skin switch; account security Settings, password policies; Online scheduled task configuration; Support cluster, support SAAS; Support for multiple data sources
http://jeesite.com
Apache License 2.0
8k stars 5.66k forks source link

关于启动的两个问题 #459

Open onlytiancai opened 6 years ago

onlytiancai commented 6 years ago

两个问题: 1、ReadMe 里"快速体验"里第4点运行bin\init-db.bat脚本,应改为 运行db\init-db.bat脚本 2、运行 bin\run-tomcat7.bat 后提示 The content of element type "resultMap" must match,是因为"\src\main\resources\mappings\modules\sys\RoleDao.xml" 的配置有问题,做如下改动才可以

 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="com.thinkgem.jeesite.modules.sys.dao.RoleDao">

     <resultMap id="roleResult" type="Role">
        <id property="id" column="id" />
-           <association property="office" javaType="Office">
-           <id property="id" column="office.id" />
-           <id property="name" column="office.name" />
-       </association>
        <result property="name" column="name" />
        <result property="enname" column="enname" />
        <result property="roleType" column="roleType" />
        <result property="dataScope" column="dataScope" />
        <result property="remarks" column="remarks" />
        <result property="useable" column="useable" />
-       <result property="sysData" column="sysData" /><!-- 
+       <result property="sysData" column="sysData" />
+       <association property="office" javaType="Office">
+           <id property="id" column="office.id" />
+           <id property="name" column="office.name" />
+       </association>
+       <!-- 
        <collection property="userList" ofType="User">
            <id property="id" column="userList.id" />
            <id property="loginName" column="userList.loginName" />
            <id property="name" column="userList.name" />
            <id property="email" column="userList.email" />
imaoldboy commented 6 years ago

正解

ryanXJ commented 6 years ago

改了哪里?