|
|
@@ -1,7 +1,7 @@
|
|
|
package com.mokamrp.privates.controller;
|
|
|
|
|
|
-
|
|
|
-import com.sun.javafx.collections.MappingChange;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.data.redis.core.StringRedisTemplate;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
@@ -17,9 +17,14 @@ import java.util.Map;
|
|
|
*/
|
|
|
@RestController
|
|
|
public class HealthyController {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ public StringRedisTemplate stringRedisTemplate;
|
|
|
+
|
|
|
@GetMapping("/healthy")
|
|
|
public Object Healthy(){
|
|
|
Map<String,Object> res = new HashMap<String,Object>();
|
|
|
+// stringRedisTemplate.getConnectionFactory().getConnection().;
|
|
|
res.put("message","success");
|
|
|
return res;
|
|
|
}
|