Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resource下面没有mapper文件 #214

Open
Mrshengz opened this issue Mar 27, 2020 · 4 comments
Open

resource下面没有mapper文件 #214

Mrshengz opened this issue Mar 27, 2020 · 4 comments

Comments

@Mrshengz
Copy link

博主您好,我下载您的项目,resource下面没有mapper文件,是您这边上传丢了吗?还是我们自己建

@xiaomudegithub
Copy link

文档说明是根据表明来生成的

@yxliuxinglin
Copy link

博主您好,我下载您的项目,resource下面没有mapper文件,是您这边上传丢了吗?还是我们自己建
你需要先自己创建好数据库和表,然后连接上,跑代码才会自动生成

@Mrshengz
Copy link
Author

Mrshengz commented Apr 27, 2020 via email

@PLQin
Copy link

PLQin commented Jul 14, 2024

同样的问题,提示:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactoryBean' defined in class path resource [com/company/project/configurer/MybatisConfigurer.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactoryBean' threw exception; nested exception is java.io.FileNotFoundException: class path resource [mapper/] cannot be resolved to URL because it does not exist

Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactoryBean' threw exception; nested exception is java.io.FileNotFoundException: class path resource [mapper/] cannot be resolved to URL because it does not exist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants