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

Cannot read SQL script from class path resource #1545

Open
DanielWolf1212 opened this issue Nov 30, 2020 · 1 comment
Open

Cannot read SQL script from class path resource #1545

DanielWolf1212 opened this issue Nov 30, 2020 · 1 comment

Comments

@DanielWolf1212
Copy link

hi i am new to this is the error

org.springframework.web.context.ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.jdbc.datasource.init.DataSourceInitializer#0': Invocation of init method failed; nested exception is org.springframework.jdbc.datasource.init.CannotReadScriptException: Cannot read SQL script from class path resource [db/tables/mysql_database_tables.sql]; nested exception is java.io.FileNotFoundException: class path resource [db/tables/mysql_database_tables.sql] cannot be opened because it does not exist

but the xml file is present still i am getting this error

@josephscott123
Copy link

look under classes there is no tables folder. Everything is under the mysql subfolder under db.

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

2 participants