P403这符合RESTFul风格,写错了,应该是RESTfulP404private PageParampageParams=null;应改为 private PageParam pageParams=null;P413代码清单15-24private RoleServiceroleService = null应改为private RoleService roleService = nullp415代码第三行private RoleServiceroleService = null应改为private RoleService roleService = nullP433代码清单15-41public ModelAndView getRoleByModelMap(@RequestParam(“id”) Long id, ModelMapmodelMap)应改为public ModelAndView getRoleByModelMap(@RequestParam(“id”) Long id, ModelMap modelMap)P436public ViewResolverinitViewResolver()改为public ViewResolver initViewResolver()
P439代码清单15-47private ExcelExportServiceexcelExpService =null;应改为private ExcelExportService excelExpService =null;
请问本书的源码使用的jdk版本在哪里查到?
用java 8吧
@码农小菜 十分感谢!
错误有点多啊。明天准备看Spring MVC。301页错误 这样就定义好了切点方法,那么现在需要切面:Aspect1、Aspect1、Aspect3、应改 这样就定义好了切点方法,那么现在需要切面:Aspect1、Aspect2、Aspect3、
303页 代码第9行错误 public class Aspect1应改 public class Aspect3
311页代码清单12-5:配置jdbcTemplate中错误 <bean id="jdbcTemplate" class="org.springframework.jdbc.core.jdbcTemplate">应改 <bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">
代码清单12-6:通过jdbcTemplate操作数据库 (第3行代码错误)错误 jdbcTemplate jdbcTemplate = ctx.getBean(jdbcTemplate.class);应改 JdbcTemplate jdbcTemplate = ctx.getBean(JdbcTemplate.class);
312页代码清单12-8:jdbcTemplate的增、删、查、改 (第4行代码错误)错误 jdbcTemplate jdbcTemplate = ctx.getBean(jdbcTemplate.class);应改 JdbcTemplate jdbcTemplate = ctx.getBean(JdbcTemplate.class);
352页 最上面的代码 (第3行代码错误)错误 <property name="basePackage" value="com.ssm.chapter12" />应改 <property name="basePackage" value="com.ssm.chapter13" />
353页 代码清单13-18public interface RoleService{ public int insertRole(Role role)}/} 此处多了一个}符号 /
P366页代码清单13-27,错误捕捉异常代码中的 productService ,拼写错误 ,写成 prudoctService
P367页代码清单13-28,自行抛出异常代码中的 productService ,拼写错误 ,写成 prudoctService
好的 十分感谢 ......
正在看书学习中。。。。发现一些小问题 不过不碍事。。。。
有问题可以在本书读者群里和大家一起讨论哈,也欢迎提交勘误帮助我们完善图书。
P100页的使用userMapper.xml引入第一个mapper url=”…../roleMapper.xml” 应该改为 UserMapper.xml不然两个重复了。
P403
这符合RESTFul风格,写错了,应该是RESTful
P404
private PageParampageParams=null;
应改为 private PageParam pageParams=null;
P413
代码清单15-24
private RoleServiceroleService = null
应改为private RoleService roleService = null
p415代码第三行
private RoleServiceroleService = null
应改为private RoleService roleService = null
P433代码清单15-41
public ModelAndView getRoleByModelMap(@RequestParam(“id”) Long id, ModelMapmodelMap)
应改为
public ModelAndView getRoleByModelMap(@RequestParam(“id”) Long id, ModelMap modelMap)
P436
public ViewResolverinitViewResolver()
改为
public ViewResolver initViewResolver()
P439
代码清单15-47
private ExcelExportServiceexcelExpService =null;
应改为private ExcelExportService excelExpService =null;
请问本书的源码使用的jdk版本在哪里查到?
错误有点多啊。明天准备看Spring MVC。
301页
错误 这样就定义好了切点方法,那么现在需要切面:Aspect1、Aspect1、Aspect3、
应改 这样就定义好了切点方法,那么现在需要切面:Aspect1、Aspect2、Aspect3、
303页 代码第9行
错误 public class Aspect1
应改 public class Aspect3
311页
代码清单12-5:配置jdbcTemplate中
错误 <bean id="jdbcTemplate" class="org.springframework.jdbc.core.jdbcTemplate">
应改 <bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">
代码清单12-6:通过jdbcTemplate操作数据库 (第3行代码错误)
错误 jdbcTemplate jdbcTemplate = ctx.getBean(jdbcTemplate.class);
应改 JdbcTemplate jdbcTemplate = ctx.getBean(JdbcTemplate.class);
312页
代码清单12-8:jdbcTemplate的增、删、查、改 (第4行代码错误)
错误 jdbcTemplate jdbcTemplate = ctx.getBean(jdbcTemplate.class);
应改 JdbcTemplate jdbcTemplate = ctx.getBean(JdbcTemplate.class);
352页 最上面的代码 (第3行代码错误)
错误 <property name="basePackage" value="com.ssm.chapter12" />
应改 <property name="basePackage" value="com.ssm.chapter13" />
353页 代码清单13-18
public interface RoleService{
public int insertRole(Role role)
}
/} 此处多了一个}符号 /
P366页
代码清单13-27,错误捕捉异常
代码中的 productService ,拼写错误 ,写成 prudoctService
P367页
代码清单13-28,自行抛出异常
代码中的 productService ,拼写错误 ,写成 prudoctService
正在看书学习中。。。。发现一些小问题 不过不碍事。。。。
P100页的
使用userMapper.xml引入
第一个mapper url=”…../roleMapper.xml” 应该改为 UserMapper.xml
不然两个重复了。