|
@ -18,6 +18,7 @@ import org.apache.http.message.BasicNameValuePair;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.dao.DataAccessException;
|
|
|
import org.springframework.jdbc.core.JdbcTemplate;
|
|
|
import org.springframework.jdbc.core.ResultSetExtractor;
|
|
@ -39,8 +40,9 @@ public class IotDeviceService {
|
|
|
|
|
|
private Logger logger = LoggerFactory.getLogger(IotDeviceService.class);
|
|
|
|
|
|
// @Value("${}")
|
|
|
private String baseUrl = "http://192.168.131.24:8088/svr-iot/";
|
|
|
@Value("${iot.url}")
|
|
|
private String baseUrl;
|
|
|
// private String baseUrl = "http://192.168.131.24:8088/svr-iot/";
|
|
|
private String grantType = "client_credentials";
|
|
|
private String clientId = "Va5yQRHlA4Fq4eR3LT0vuXV4";
|
|
|
private String clientSecret = "0rDSjzQ20XUj5itV7WRtznPQSzr5pVw2";
|