Add resource hints for schema and data scripts
See original GitHub issueSchema & data files defined via properties are not added to the resource-config.json
which causes application to error on first access.
java.lang.IllegalStateException: Failed to execute CommandLineRunner
Caused by: org.h2.jdbc.JdbcSQLSyntaxErrorException: Table "xyz" not found (this database is empty);
database=h2
spring.sql.init.schema-locations=classpath*:db/${database}/schema.sql
spring.sql.init.data-locations=classpath*:db/${database}/data.sql
should translate to:
[
{ "pattern": "\\Qdb\/h2\/schema.sql\\E" },
{ "pattern": "\\Qdb\/h2\/data.sql\\E" },
]
Issue Analytics
- State:
- Created a year ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Quick Guide on Loading Initial Data with Spring Boot - Baeldung
A quick and practical example of using data.sql and schema.sql files in Spring Boot.
Read more >Template structure and syntax - Azure Resource Manager
Describes the structure and properties of Azure Resource Manager templates (ARM templates) using declarative JSON syntax.
Read more >Resource Hints - W3C
A resource hint link is a dns-prefetch , preconnect , prefetch , or prerender relationship that is used to indicate an origin or...
Read more >How to Speed Up Magento 2 With Preconnect Resource Hints
Add Resource Hints to your Store's Head ... Since Resource Hints are link relationship elements (like stylesheets) they need to be defined in...
Read more >2 Installing Sample Schemas - Database
Oracle Database Examples Installation Guide for download and installation ... All scripts necessary to create the Human Resource ( HR ) schema reside...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yeah, I think that’s a good way forward.
This can be tested with the
jdbc
smoke test.