唉,感觉老师讲的东西都不错,本来就是学mybatis的嘛,所以说老师给讲点前台知识已经很不错了,不能强求太多。老师在讲mybatis的时候已经讲的很详细了
2017-03-13
已采纳回答 / JavonZhao
我的解决方法:以记事本打开talk.jsp,以UTF-8编码另存,再覆盖入工程,解决。原因分析:根据我的方法来看,可能是talk.jsp的文本格式和UTF-8冲突。
2017-03-13
批量删除后台抛异常 Class com.xiaohan.servlet.DeleteBatchServlet is not a Servlet
2017-03-12
<select>标签中的if标签:
<if test="_parameter!=null&amp;&amp;!&quot;&quot;.equals(_parameter.trim())">and a.NAME=#{_parameter}</if>
注意if标签中传的不是name,而是_parameter,用它来代替name,、
至于为什么。你可以百度
<if test="_parameter!=null&amp;&amp;!&quot;&quot;.equals(_parameter.trim())">and a.NAME=#{_parameter}</if>
注意if标签中传的不是name,而是_parameter,用它来代替name,、
至于为什么。你可以百度
2017-03-11
因为我们在前段页面查询只会输入指令,所以从前台到后端可以只传一个name(也就是指令)参数。那么在Command.xml文件中,就不用Command的实例化对象代替name 和description两个参数了。直接传name这个参数就可了。但是也因为name是String类型的参数,不是自定义类型的,所以Command.xml文件中<select>标签里面应该这么写:
2017-03-11
若是在Configuration.xml文件中没有加上那两行,
<mapper resource="config/Command.xml"/>
<mapper resource="config/Command_Content.xml"/>
系统便会报错误:
Mapped Statements collection does not contain value for Command.queryCommandList
<mapper resource="config/Command.xml"/>
<mapper resource="config/Command_Content.xml"/>
系统便会报错误:
Mapped Statements collection does not contain value for Command.queryCommandList
2017-03-11