|
@@ -39,35 +39,35 @@ public class AuthController {
|
|
|
@RequestMapping(value = "/kakao/test", method = RequestMethod.POST, consumes = "application/json")
|
|
|
public @ResponseBody Map<String, Object> test(@RequestBody Map<String, Object> body) throws Exception {
|
|
|
|
|
|
-// ThingsInfo[] list = {new ThingsInfo("temper_5", "temper" , "802", "1103"),
|
|
|
-// new ThingsInfo("light02_4", "light02" , "802", "1103"),
|
|
|
-// new ThingsInfo("light03_3", "light03" , "802", "1103"),
|
|
|
-// new ThingsInfo("temper_4", "temper" , "802", "1103"),
|
|
|
-// new ThingsInfo("light01_4", "light01" , "802", "1103"),
|
|
|
-// new ThingsInfo("light02_3", "light02" , "802", "1103"),
|
|
|
-// new ThingsInfo("light03_2", "light03" , "802", "1103"),
|
|
|
-// new ThingsInfo("temper_3", "temper" , "802", "1103"),
|
|
|
-// new ThingsInfo("ventil_1", "ventil" , "802", "1103"),
|
|
|
-// new ThingsInfo("temper_2", "temper" , "802", "1103"),
|
|
|
-// new ThingsInfo("temper_1", "temper" , "802", "1103"),
|
|
|
-// new ThingsInfo("light01_1", "light01" , "802", "1103"),
|
|
|
-// new ThingsInfo("light01_3", "light01" , "802", "1103"),
|
|
|
-// new ThingsInfo("light02_2", "light02" , "802", "1103"),
|
|
|
-// new ThingsInfo("light03_1", "light03" , "802", "1103"),
|
|
|
-// new ThingsInfo("livinglight_1", "livinglight" , "802", "1103"),
|
|
|
-// new ThingsInfo("light01_2", "light01" , "802", "1103"),
|
|
|
-// new ThingsInfo("light02_1", "light02" , "802", "1103"),
|
|
|
-// new ThingsInfo("gas_1", "gas" , "802", "1103"),
|
|
|
-// new ThingsInfo("livinglight_2", "livinglight" , "802", "1103"),
|
|
|
-// new ThingsInfo("livinglight_3", "livinglight" , "802", "1103"),
|
|
|
-// new ThingsInfo("livinglight_4", "livinglight" , "802", "1103"),
|
|
|
-// new ThingsInfo("livinglight_5", "livinglight" , "802", "1103"),
|
|
|
-// new ThingsInfo("ElevatorCaller", "elevator" , "802", "1103")};
|
|
|
-//
|
|
|
-//
|
|
|
-// for(ThingsInfo info:list) {
|
|
|
-// thingsRepo.save(info);
|
|
|
-// }
|
|
|
+ ThingsInfo[] list = {new ThingsInfo("temper_5", "temper" , "802", "1103"),
|
|
|
+ new ThingsInfo("light02_4", "light02" , "802", "1103"),
|
|
|
+ new ThingsInfo("light03_3", "light03" , "802", "1103"),
|
|
|
+ new ThingsInfo("temper_4", "temper" , "802", "1103"),
|
|
|
+ new ThingsInfo("light01_4", "light01" , "802", "1103"),
|
|
|
+ new ThingsInfo("light02_3", "light02" , "802", "1103"),
|
|
|
+ new ThingsInfo("light03_2", "light03" , "802", "1103"),
|
|
|
+ new ThingsInfo("temper_3", "temper" , "802", "1103"),
|
|
|
+ new ThingsInfo("ventil_1", "ventil" , "802", "1103"),
|
|
|
+ new ThingsInfo("temper_2", "temper" , "802", "1103"),
|
|
|
+ new ThingsInfo("temper_1", "temper" , "802", "1103"),
|
|
|
+ new ThingsInfo("light01_1", "light01" , "802", "1103"),
|
|
|
+ new ThingsInfo("light01_3", "light01" , "802", "1103"),
|
|
|
+ new ThingsInfo("light02_2", "light02" , "802", "1103"),
|
|
|
+ new ThingsInfo("light03_1", "light03" , "802", "1103"),
|
|
|
+ new ThingsInfo("livinglight_1", "livinglight" , "802", "1103"),
|
|
|
+ new ThingsInfo("light01_2", "light01" , "802", "1103"),
|
|
|
+ new ThingsInfo("light02_1", "light02" , "802", "1103"),
|
|
|
+ new ThingsInfo("gas_1", "gas" , "802", "1103"),
|
|
|
+ new ThingsInfo("livinglight_2", "livinglight" , "802", "1103"),
|
|
|
+ new ThingsInfo("livinglight_3", "livinglight" , "802", "1103"),
|
|
|
+ new ThingsInfo("livinglight_4", "livinglight" , "802", "1103"),
|
|
|
+ new ThingsInfo("livinglight_5", "livinglight" , "802", "1103"),
|
|
|
+ new ThingsInfo("ElevatorCaller", "elevator" , "802", "1103")};
|
|
|
+
|
|
|
+
|
|
|
+ for(ThingsInfo info:list) {
|
|
|
+ thingsRepo.save(info);
|
|
|
+ }
|
|
|
|
|
|
|
|
|
logger.info("kakao test --<>>>>>");
|