发表于: 2018-02-10 23:38:50

1 625


今天接了个任务,就是把任务一到任务九,每个任务最少一个bug,放到坑乎上。感觉这个任务有点难,因为我刚做到任务二。问了一下杨以杰,说是可以做,就当是提前熟悉熟悉也好。今天做了两个任务的bug,task1和task2

第一个是:

org.apache.ibatis.binding.BindingException:ibatis.binding.bingingException:invalid bound statement (not found):com.ptteng.dao.studentDao.deletesyudent ,为Mabatis绑定错误

第二个是:

java.lang.Exception: No tests found matching Method testAdd(test.MybatisTest) from org.junit.internal.requests.ClassRequest@59fa1d9b

at org.junit.internal.requests.FilterRequest.getRunner(FilterRequest.java:40)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:49)
at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)

解决方案:@Before加上
@Test标签。在MybatisTest里面加入了@Before

别的任务明后天再说。


正好检查了一下以前的所学,把这个项目又运行了一遍,联通了一下数据库,更改了一下数据。发现一个新的知识点,原来studentDao.xml放在com.ptteng.mapper下面也是可以的,没有必要一定要放在resources下面。不能拘泥啊还是。


二。准备了一下明天的小课堂内容:WEB.XML里的主要配置都包括什么,都代表什么含义,比如怎么加载SPRINGMVC 配置的


<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop"
   xmlns:tx="http://www.springframework.org/schema/tx" xmlns:jdbc="http://www.springframework.org/schema/jdbc"
   xmlns:context="http://www.springframework.org/schema/context"
   xmlns:mvc="http://www.springframework.org/schema/mvc"
   xsi:schemaLocation="http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-3.0.xsd
       http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
       http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
       http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
       http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd">



   <context:annotation-config/>

   <context:component-scan base-package="com.how2java.controller">
         <context:include-filter type="annotation"
         expression="org.springframework.stereotype.Controller"/>
   </context:component-scan>

   <mvc:annotation-driven />
   
   <mvc:default-servlet-handler />


   <bean
       class="org.springframework.web.servlet.view.InternalResourceViewResolver">
       <property name="viewClass"
           value="org.springframework.web.servlet.view.JstlView" />
       <property name="prefix" value="/WEB-INF/jsp/" />
       <property name="suffix" value=".jsp" />
   </bean>
</beans>


明天的计划:讲完小课堂,做完BUG任务,完成任务二

遇到的问题:暂无

今天的收获:准备了小课堂,做了两个BUG任务

java任务二开始时间:2018.01.25

预计demo时间:2018.02.12

可能有延期风险,原因是:基础比较差,

禅道链接地址:http://task.ptteng.com/zentao/project-task-501.html



返回列表 返回列表
评论

    分享到