@@ -34,11 +34,12 @@ public class ObjectiveController {
```
This class is mapping a Post request from `/objective-complete`, authenticates a specific external objective, and returns a response based on the success of that operation.
#### Component Annotation
##### Component Annotation
To start, Spring requires annotation of components so the class requires a `@RestController` at the top of the class. This allows Spring to be aware of this component and automatically configure it.
#### Dependency Injection
##### Dependency Injection
Spring is capable of dependency injection, which is quite useful for unit testing and running in different configurations. Here we are using constructor based dependency injection as shown here with the Objective Service: