0
を見つけることができませんでした:は、リソースCOM/RL /環境調和型製品/ SQLMAP/EBItemMapper.xml
<!DOCTYPE configuration
PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-config.dtd">
<configuration>
<mappers>
<mapper resource="com/rl/ecps/sqlMap/EbBrandMapper.xml"/>
<mapper resource="com/rl/ecps/sqlMap/EbItemMapper.xml"/>
</mappers>
</configuration>
Tomcatの起動がようなエラーを報告します従い
<!DOCTYPE configuration
PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-config.dtd">
<configuration>
<mappers>
<mapper resource="com/rl/ecps/sqlMap/EbBrandMapper.xml"/>
<!-- <mapper resource="com/rl/ecps/sqlMap/EbItemMapper.xml"/> -->
</mappers>
</configuration>
:私は次のように構成した場合
しかし
Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource com/rl/ecps/sqlMap/EbItemMapper.xml
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:288)
、Tomcatは次のように異常な を開始しません
公式の文書を確認した後、私はこの設定に問題はないと確信しています。なぜ間違っているのか分かりませんか?私に教えてください。感謝!
まずは、本当にありがとうございます。 私はEclipse開発ツールを使用しています。 /com/rl/ecps/sqlMap/EbItemMapper.xmlの設定を左クリックしてCtrlキーを押してください。このファイルにアクセスできますが、 私の実際のファイルはcom/rl/ecps/sqlMap/EBItemMapper.xmlです。私はこのメソッドを使用しています。この日食は、ファイル名 – lpgad
@ LPGADに対して鈍感です。どういたしまして。私が助けになることができて嬉しいです。将来他の質問がある場合は、お気軽にお問い合わせください。 – VHS