(1)
<form action="/account/save" method="post">
名字 <input type="text" name="name"><br>
金额 <input type="text" name="menoy"><br>
<input type="button" value="保存"> <br>
</form>
<form action="account/save" method="post">
姓名:<input type="text" name="name" /><br/>
金额:<input type="text" name="menoy" /><br/>
<input type="submit" value="保存"/><br/>
</form>
知识兔*表单 action属性路径错误"/account/save" "account/save"
*错误提示:点击提交按钮无响应
(2)sql语句出错:
Request processing failed; nested exception is org.springframework.jdbc.BadSqlGrammarException:
知识兔500内部错误
(3)spring与mybatis整合路径错误
Error creating bean with name 'accountService': Unsatisfied dependency expressed through field 'iAcconyDao'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'cn.li.dao.IAcconyDao' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
知识兔<!--配置AccountDao接口所在包-->
<bean id="mapperScanner" class="org.mybatis.spring.mapper.MapperScannerConfigurer">
<property name="basePackage" value="cn.li.dao"/>
</bean>
<!--配置AccountDao接口所在包-->
<bean id="mapperScanner" class="org.mybatis.spring.mapper.MapperScannerConfigurer">
<property name="basePackage" value="cn.li.dao.IAccountDao"/>
</bean>
知识兔*需要配置包,结果配置为类全名称