![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Thingsboard
文章平均质量分 69
Nown1
这个作者很懒,什么都没留下…
展开
-
Thingsboard源码分析(三)遥测数据获取
获取遥测数据TelemetryController首先找到入口,比如获取最新遥测数据方法getLatestTelemetry,/DEVICE/deviceId/values/timeseries 在 TelemetryController 中:@RestController@TbCoreComponent// TbUrlConstants.TELEMETRY_URL_PREFIX=="/api/plugins/telemetry"@RequestMapping(TbUrlConstants.原创 2022-02-23 11:30:37 · 6943 阅读 · 0 评论 -
Thingsboard源码分析(一)数据库crud--SpringDataJPA
从CustomerController入手,其getCustomers方法调用了CustoemrService.findCustomersByTenantId方法CustomerService是由于CustoemrController继承了BaseController。BaseController注入了一个CustoemrService(接口)@PreAuthorize("hasAuthority('TENANT_ADMIN')") @RequestMapping(value = "/cus原创 2021-09-25 14:06:11 · 1212 阅读 · 1 评论 -
Thingsboard源码分析(二)OAuth2--SpringSecurity
首先来说明一下 OAuth2 授权码模式 快捷登录流程:开发者先去第三方认证平台去申请一个应用,然后认证平台会给我们一个客户端Id(clientId)和密钥(clientSecret),还需要预留一个回调地址(http://localhost:8080/login/oauth2/code/)。当tb使用第三方登录时,由thingsboard向Github发起验证请求,跳转到认证平台的用户授权页面(https://github.com/login/oauth/authorize)。如果用户确认授权..原创 2021-09-25 14:23:05 · 1155 阅读 · 0 评论