修改前

<select id="selectMaxIdPro" resultType="java.lang.Integer">

    select

    max (project_id)

    from project

  </select>

修改后<select id="selectMaxIdPro" resultType="java.lang.Integer">

    select

    max(project_id)

    from project

  </select>

  mysql的原因,在使用函数查询时,函数名后面不能加空格