• 597419558

    178页的包装类型参数绑定。在运行的时候没问题,页面显示出全部的水果信息,但是搜索的时候却搜索不出东西。检测很多遍代码,也看源码,明明都一样,为什么其中的queryFruitsByCondition的方法执行不出来。求解惑

    597419558发表于 2019/1/17 22:30:44
    • 光仔December

      您好,queryFruitsByCondition方法是如何执行不出来的?是执行了查询方法之后没有查询结果吗?请您将日志等级调整为Debug级别,然后查看一下执行queryFruitsByCondition方法时控制台输出的查询语句中的SQL是什么样的,拼接的查询条件又是什么,这样就可以排查出来是语句的问题,还是查询条件的问题了!感谢您的支持

      光仔December发表于 2019/1/20 10:01:55
  • 刘啦啦啦啦

    JDBC Connection [jdbc:mysql://localhost:3306/mybatis_test?characterEncoding=utf-8, UserName=root@localhost, MySQL-AB JDBC Driver] will not be managed by Spring这个问题怎么解决啊?
    SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@61526469] was not registered for synchronization because synchronization is not active

    刘啦啦啦啦发表于 2019/1/14 15:12:02
    • 光仔December

      您好,检查一下Spring配置文件中,对于事务的切面execution配置中,service类的包路径是否正确

      光仔December发表于 2019/1/20 9:58:21
  • 200985

    命名不规范,不按照驼峰命名法命名

    200985发表于 2019/1/10 16:47:40
    • 光仔December

      感谢指出!由于出稿时间问题,有些代码模块的命名不是很规范,以后会多加修订

      光仔December发表于 2019/1/20 9:59:59
  • dewade32

    org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: file [D:\workspace\MyBatisAndSpring\build\classes\cn\com\sm\mapper\UserQueryMapper.class]; nested exception is j**a.lang.IllegalArgumentException
    这是7.1报的错误,代码我都是用粘贴的。。。。

    dewade32发表于 2018/11/21 21:17:06
    • dewade32

      DEBUG [main] - Adding [systemEnvironment] PropertySource with lowest search precedence
      DEBUG [main] - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]
      DEBUG [main] - Looking for matching resources in directory tree [D:\workspace\MyBatisAndSpring\build\classes\cn\com\sm\mapper]
      DEBUG [main] - Searching directory [D:\workspace\MyBatisAndSpring\build\classes\cn\com\sm\mapper] for files matching pattern [D:/workspace/MyBatisAndSpring/build/classes/cn/com/sm/mapper/**/*.class]
      DEBUG [main] - Resolved location pattern [classpath*:cn/com/sm/mapper/**/*.class] to resources [file [D:\workspace\MyBatisAndSpring\build\classes\cn\com\sm\mapper\UserQueryMapper.class]]
      INFO [main] - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@eec5a4a: defining beans [org.springframework.context.support.PropertySourcesPlaceholderConfigurer#0,dataSource,sqlSessionFactory,userDao,org.mybatis.spring.mapper.MapperScannerConfigurer#0]; root of factory hierarchy

      dewade32发表于 2018/11/21 21:36:10
    • 光仔December

      UserQueryMapper中应该是传递了一个不合法或不正确的参数,请检查UserQueryMapper中是否有与SQL配置的输入输出参数不一致的地方

      光仔December发表于 2018/12/20 22:07:35
    • dewade32

      @光仔December 12.1.3里面我返回的错误信息是{fruits.producing_area.isEmpty},感觉配置的错误信息文件没起作用

      dewade32发表于 2018/12/29 0:01:05
  • mjylop

    Error creating bean with name ‘accessoryController’: Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.fruitsalesplatform.service.AccessoryService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@j**ax.annotation.Resource(shareable=true, lookup=, name=, description=, authenticationType=CONTAINER, type=class j**a.lang.Object, mappedName=)}

    mjylop发表于 2018/11/13 14:05:21
    • mjylop

      怎么搞 源码

      mjylop发表于 2018/11/13 14:05:44
    • 光仔December

      @mjylop 您好,请检查一下accessoryController中的accessoryService的注入有没有问题

      光仔December发表于 2018/12/20 22:05:19
  • 1
  • ...
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8