You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 23, 2023. It is now read-only.
Added hint to support spring-integration-jdbc dependency.
Currently if this dependency is present in a project, schema-h2 (if h2 is specifed as datastore) is not found.
```
Caused by: org.springframework.jdbc.datasource.init.CannotReadScriptException: Cannot read SQL script from class path resource [org/springframework/integration/jdbc/schema-h2.sql]; nested exception is java.io.FileNotFoundException: class path resource [org/springframework/integration/jdbc/schema-h2.sql] cannot be opened because it does not exist
org.springframework.jdbc.datasource.init.ScriptUtils.executeSqlScript(ScriptUtils.java:239)
org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.populate(ResourceDatabasePopulator.java:254)
org.springframework.jdbc.datasource.init.DatabasePopulatorUtils.execute(DatabasePopulatorUtils.java:49)
org.springframework.boot.jdbc.AbstractDataSourceInitializer.initialize(AbstractDataSourceInitializer.java:71)
org.springframework.boot.jdbc.AbstractDataSourceInitializer.afterPropertiesSet(AbstractDataSourceInitializer.java:55)
[...]
Caused by: java.io.FileNotFoundException: class path resource [org/springframework/integration/jdbc/schema-h2.sql] cannot be opened because it does not exist
org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:187)
org.springframework.core.io.support.EncodedResource.getReader(EncodedResource.java:146)
org.springframework.jdbc.datasource.init.ScriptUtils.readScript(ScriptUtils.java:328)
org.springframework.jdbc.datasource.init.ScriptUtils.executeSqlScript(ScriptUtils.java:236)
```
This PR adds a hint to resolve this issue.
0 commit comments