Invalid bound statement (not found)錯誤解決
今天在使用java框架做資料同步更新時遇到這樣一個問題 Invalid bound statement (not found):
框架是基於spring mybatis的,檢查程式編寫
1在sql的xml裡格式
<select id="getConfirmActivityDTO" resultType="sec.crm.thirdpl.vo.WeChatActivityDTO">
<!-- SQL -->
</select>
2在dao裡的格式
@MyBatisMapper
public interface JOB_Mapper {
public List<WeChatActivityDTO> getConfirmActivityDTO();
}
3在業務方法的格式
@Service("job_BIZ")
public class JOB_BIZIMPL implements JOB_BIZ {
@Inject
private JOB_Mapper mapper;
......
}
4 在task中格式
@Component(value = "job_SYN_Task")
public class JOB_SYN_Task implements Runnable {
@Inject
JOB_BIZ job_BIZ;
}
從上面程式編寫中未發現異常,於是主要關注配置檔案,在定時任務的配置中發現
<bean id="JOB_SYN_Trigger"
class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
<property name="jobDetail">
<ref bean="JOB_SYN_Detail" />
</property>
<property name="cronExpression">
<value>2 * * * * ?</value>
</property>
</bean>
為測試方便,定時任務配置成2s啟動一次,導致程式沒有搜尋IOC物件注入的時間,所以報錯,調整程式啟動時間間隔後,不在報此問題
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/750077/viewspace-2102356/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- MyBatis 錯誤:Invalid bound statement (not found)MyBatis
- mybatis 報錯: Invalid bound statement (not found)MyBatis
- IDEA+Maven:invalid bound statement (not found)解決辦法IdeaMaven
- mybatis3:Invalid bound statement (not found)MyBatisS3
- IDEA+Maven+Springboot:invalid bound statement (not found) 解決辦法IdeaMavenSpring Boot
- MybatisPlus自帶方法報錯BindingException: Invalid bound statement (not found)MyBatisException
- MyBatis繫結錯誤:org.apache.ibatis.binding.BindingException:Invalid bound statement (not found)MyBatisApacheException
- 報錯Invalid bound statement (not found): com.thxy.mapper.RoleMapper.insertRleAPP
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)ApacheBATException
- 關於org.apache.ibatis.binding.BindingException: Invalid bound statement (not found),找不到mapper檔案問題解決ApacheBATExceptionAPP
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): yycg.business.dao.mApacheBATException
- mybatis配置時出現org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)MyBatisApacheException
- mybatis-plus自定義mapper報org.apache.ibatis.binding.BindingException: Invalid bound statement(not found)MyBatisAPPApacheException
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)的問題處理方式之一ApacheBATException
- 解決ntp的錯誤 no server suitable for synchronization foundServerUI
- 【spring boot Mybatis】報錯:org.apache.ibatis.binding.BindingException: Invalid bound statement (not fo...Spring BootMyBatisApacheException
- 解決shell指令碼錯誤$’r’ command not found指令碼
- 解決SpringMVC+Hibernate錯誤: No Hibernate Session bound to threadSpringMVCSessionthread
- Eclipse中解決Multiple annotations found at this line錯誤。Eclipse
- 解決org.apache.ibatis.binding.BindingException: Invalid boundApacheBATException
- 解決 The ‘supervisor==3.2.0‘ distribution was not found and is required by the application錯誤UIAPP
- IMP-00017: following statement failed with ORACLE error 957錯誤的解決方法AIOracleError
- All About JAVA An invalid XML character (Unicode: 0xdd65) was found in the comment 錯誤JavaXMLUnicode
- 微信分享JSSDK-invalid signature簽名錯誤的解決方案JS
- Ocelot錯誤解決
- std::sort 錯誤"Expression : invalid operator <"Express
- windows10,homestead啟動時,VERR_INTNET_FLT_IF_NOT_FOUND 錯誤解決Windows
- (已解決)確定mapper配置無誤,且配置檔案無誤, 執行無誤 出現org.apache.ibatis.binding.BindingException: Invalid bound statemenAPPApacheBATException
- VIM 常用錯誤解決
- sqldeveloper for windows 錯誤解決SQLDeveloperWindows
- 小程式錯誤:Component is not found in path
- vsftpd 錯誤:530 and 500 錯誤解決方法FTP
- 執行mysqlbinlog出現Found invalid event in binary log錯MySql
- latex 錯誤以及解決方案
- ora-27504錯誤解決
- Datastore error in 'dirbdb'錯誤解決ASTError
- ORA-27054 錯誤解決
- mysql與php錯誤解決MySqlPHP