@ -345,9 +347,9 @@ Then you will be able to inject a `DataSource` into your controller:
@@ -345,9 +347,9 @@ Then you will be able to inject a `DataSource` into your controller:
...
}
The app will run (going back to the default security configuration):
The app will run (with the new security configuration):
$ curl user:password@localhost:8080/
$ curl client:secret@localhost:8080/
{"error":"Internal Server Error", "status":500, "exception":...}
but there's no data in the database yet and the `MESSAGES` table
@ -362,7 +364,7 @@ Then you will be able to inject a `DataSource` into your controller:
@@ -362,7 +364,7 @@ Then you will be able to inject a `DataSource` into your controller:
Now when you run the app you get a sensible response:
$ curl user:password@localhost:8080/
$ curl client:secret@localhost:8080/
{"ID":0, "MESSAGE":"Hello Phil"}
Obviously, this is only the start, but hopefully you have a good grasp