- *
- * @since 09/28/2018
+ * Application configuration and bootstrap
*/
@SpringBootApplication
-public class Application {
+@EnableEncryptableProperties
+public class Application extends SpringBootServletInitializer {
+ @Override
+ protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
+ return application.sources(Application.class, RestApiAppConfig.class, WebMVCConfig.class, MongoConfig.class);
+ }
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
diff --git a/src/main/java/com/capitalone/dashboard/controller/PingController.java b/src/main/java/com/capitalone/dashboard/controller/PingController.java
new file mode 100644
index 0000000..e109ba1
--- /dev/null
+++ b/src/main/java/com/capitalone/dashboard/controller/PingController.java
@@ -0,0 +1,25 @@
+package com.capitalone.dashboard.controller;
+
+import org.springframework.http.HttpStatus;
+import org.springframework.http.ResponseEntity;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
+import static org.springframework.web.bind.annotation.RequestMethod.GET;
+
+@RestController
+public class PingController {
+
+ public PingController() {
+
+ }
+
+ @RequestMapping(value = "/ping", method = GET, produces = APPLICATION_JSON_VALUE)
+ public ResponseEntity