• 劳码识途

    为什么我在写案例的时候,spring中@ComponentScan注解不能使用多个,而书上239页的解释是可以使用多个?是不是我忽略了什么还是书上解释的有问题???

    劳码识途发表于 2018/3/26 22:39:52
    • 劳码识途

      已经解决,是spring版本的问题,

      劳码识途发表于 2018/3/27 10:00:33
  • 毛献哲

    更改数据库配置并创建好表及插入数据,运行chapter22显示以下异常
    三月 26, 2018 7:26:21 下午 org.apache.catalina.core.StandardWrapperValve invoke
    严重: Servlet.service() for servlet [dispatcher] in context with path [/Chapter22] threw exception [Request processing failed; nested exception is redis.clients.jedis.exceptions.JedisDataException: ERR Error running script (call to f_ca70ae779a14cab5beac3cc2cf270ef6c8c1daac): @user_script:4: user_script:4: attempt to compare nil with number ] with root cause
    redis.clients.jedis.exceptions.JedisDataException: ERR Error running script (call to f_ca70ae779a14cab5beac3cc2cf270ef6c8c1daac): @user_script:4: user_script:4: attempt to compare nil with number
    错误定在这一行
    // 执行脚本,返回结果
    Object res = jedis.evalsha(sha1, 1, redPacketId + “”, args);
    谁遇到了此问题?

    毛献哲发表于 2018/3/26 19:29:09
  • zzy

    怎么没视频

    zzy发表于 2018/3/15 18:51:47
    • williamnte

      只有一节

      williamnte发表于 2018/4/1 18:26:14
  • baotie

    各位大侠,我22章的例子没运行起来。使用全注解,好像注解的这些配置没有加入进去,没有起作用,连controller可能也没有找到,是什么原因呢?盼望解答,谢谢大家!!!
    报错误:The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.

    baotie发表于 2018/2/26 0:35:47
  • 狮子

    另外我在springboot1.5.6 版本,注解配置的项目,不存在service自调用失效的问题,出现错误即回滚,不知道作者发现了这个问题没有?还是只有我这样?希望可以共同讨论一下

    狮子发表于 2018/2/4 19:40:39
  • 1
  • ...
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • ...
  • 24