• alibrety

    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;

    alibrety发表于 2017/8/31 21:58:59
  • caizj021769

    请问本书的源码使用的jdk版本在哪里查到?

    caizj021769发表于 2017/8/30 12:11:45
    • 码农小菜

      用java 8吧

      码农小菜发表于 2017/8/30 12:41:33
    • caizj021769

      @码农小菜 十分感谢!

      caizj021769发表于 2017/8/30 12:54:33
  • alibrety

    错误有点多啊。明天准备看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

    alibrety发表于 2017/8/26 23:30:51
    • 码农小菜

      好的 十分感谢 ......

      码农小菜发表于 2017/8/27 9:10:36
  • qixiangcheng

    正在看书学习中。。。。发现一些小问题 不过不碍事。。。。

    qixiangcheng发表于 2017/8/23 20:04:56
    • 汪达文

      有问题可以在本书读者群里和大家一起讨论哈,也欢迎提交勘误帮助我们完善图书。

      汪达文发表于 2017/8/24 10:45:30
  • alibrety

    P100页的
    使用userMapper.xml引入
    第一个mapper url=”…../roleMapper.xml” 应该改为 UserMapper.xml
    不然两个重复了。

    alibrety发表于 2017/8/21 14:46:26
  • 1
  • ...
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24