From the course: Spring Boot 2.0 Essential Training
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
Connecting to external databases
From the course: Spring Boot 2.0 Essential Training
Connecting to external databases
- [Instructor] Embedded databases are great for demo and PSC work. But in the real world, we will use an external database. With Spring Boot, it is a very simple process to move to such a system. Keep in mind once we do this change, you will need to be running your database in the background for the rest of this course. The first thing that I want you to do is to navigate to your bin directory. Now these bash scripts are designed to be run on Linux based systems. So if your window is 10 environment, runs full Linux and you have Docker installed they should work there as well with a few minor modifications. But what we're going to do is we're going to run the start PostgreSQL shell script that I've written. Now your output may be a little bit different if you have to download the data. But ultimately, what we want to see is a whole bunch of insert statements to know that our database is up and it's been primed. And we…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.