The following listing shows a typical layout: com +- example +- myapplication +- Application.java +- customer +- Customer. This includes creating an H2 DataSource implementation, which will be automatically handled by HikariCP, Apache Tomcat, or Commons DBCP, and setting up an in-memory database instance.Īdditionally, we won't even need to create an application.properties file, as Spring Boot will provide some default database settings as well.Īs we mentioned before, at times we'll need a higher level of customization, so we'll have to programmatically configure our own DataSource implementation. From the docs:, this is the recommended way. Spring Boot will do all the heavy infrastructure plumbing for us.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |