No unique bean of type [net.shougongfang.action.paymoney.AlipayPayMoneyReturnObj] is defined: Unsat


0

你把@Service放到实现类上吧。这个问题好像不止一个人在问啦

2013年10月25日 10:34

shidan66

30

0 1 1


00

1,@service放到实现上

2。在xml中配置扫描路径

Xml代码  

  1. <mvc:annotation-driven />
  2. <context:component-scan base-package="com.xxx.service.impl com.xxx.controller"/>

2013年10月25日 10:34

xlaohe1

32

0 1 6


0

你把@Service放到实现类上吧。

这个问题好像不止一个人在问啦

2013年10月25日 10:34

shidan66

30

0 1 1


00

1。@service放到实现上

2,在xml中配置扫描路径

Xml代码  

  1. <mvc:annotation-driven />
  2. <context:component-scan base-package="com.xxx.service.impl com.xxx.controller"/>

2013年10月25日 10:34

xlaohe1

32

0 1 6

时间: 2024-10-11 14:53:28

No unique bean of type [net.shougongfang.action.paymoney.AlipayPayMoneyReturnObj] is defined: Unsat的相关文章

spring exception--No unique bean of type

今天碰到一个问题,就是我现有项目需要加一个定时器任务,我的代码如下: Java代码 <!-- 每日数据同步 总数监测任务******************begin --> <bean id="dataMonitorServiceImpl" class="com.netqin.function.dataMonitor.service.impl.DataMonitorServiceImpl"> </bean> <bean i

No unique bean of type

使用webx开发时遇到几次这样的错误,总结一下. 在applicationContext.xml里面添加定时器任务的配置: <bean name="applicationService" class="com.taobao.scm.tenv.monitor.service.impl.ApplicationServiceImpl" /> <bean name="productService" class="com.tao

【spring boot】mybatis启动报错:Consider defining a bean of type &#39;com.newhope.interview.dao.UserMapper&#39; in your configuration.

启动报错: 2018-02-24 22:41:00.442 WARN 2952 --- [ main] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error c

Sping Cloud项目启动报A component required a bean of type &#39;com.tianyan.bbc.dao.SecurityUserBaseMapper&#39; that could not be found.

项目构建正常,启动和Debug报以下错误: Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.2018-12-14 09:49:32.038 [main] ERROR o.s.b.diagnostics.LoggingFailureAnalysisReporter - ***************************

Consider defining a bean of type &#39;com.lvjing.dao.DeviceStatusMapper&#39; in your configuration.

"C:\Program Files\Java\jdk1.8.0_181\bin\java.exe" "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2018.2.4\lib\idea_rt.jar=55273:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2018.2.4\bin" -Dfile.enc

Consider defining a bean of type `xxx` in your configuration问题解决问题解决

在使用SpringBoot装配mybatis时出现了异常 *************************** APPLICATION FAILED TO START *************************** Description: Field studentService in com.example.demo.action.StudentController required a bean of type 'com.example.demo.service.StudentS

springboot 工程启动报错之Consider defining a bean of type ‘XXX’ in your configuration.

一.前言: 使用springboot自动注入的方式搭建好了工程,结果启动的时候报错了!!!,错误如下图: Description: Field userEntityMapper in com.xxx.xxx.service.UserService required a bean of type 'com.xxx.xxx.dao.UserEntityMapper' that could not be found. Action: Consider defining a bean of type '

运行springboot项目报错:Field userMapper in XX required a bean of type &#39;xx&#39; that could not be found.

运行springboot项目报错: *************************** APPLICATION FAILED TO START *************************** Description: Field userMapper in com.whohim.springboot.service.impl.UserServiceImpl required a bean of type 'com.whohim.springboot.dao.UserMapper' t

Parameter 0 of method 方法b in 类a required a bean of type ***

Description: Parameter 0 of method getLastTick in com.td.spec.marketdata.stockdatasourceserver.service.CacheProcessor required a bean of type 'com.td.spec.marketdata.common.entity.StockTick' that could not be found. Action: Consider defining a bean o