![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java问题集
文章平均质量分 51
windcore
收学徒,免费指导软件开发全栈,要求是在南昌的大学生或吉安的井大,景德镇学院在读的大学生,不限专业,只要勤奋好学,每周保证20小时的编程时间,尊敬师长,品行良好即可。
展开
-
初学SNMP,在spring boot 下使用snmp4j 做本地测试调通的记录
一、SNMP概念学习参考这篇Snmp学习总结(七)——SNMP4J介绍 - 孤傲苍狼 - 博客园 (cnblogs.com)二、SNMP协议深入学习(不想了解的可跳过)聊聊SNMP协议 - Chloneda - 博客园 (cnblogs.com)三、Snmp4j框架的应用 参考这2篇,这两个的例子都已经亲测有效 SNMP4J 整合Spring_daorenfeixueyuhau的博客-CSDN博客 jrask/snmp-blog: Cod...原创 2021-05-20 22:32:48 · 1481 阅读 · 2 评论 -
分享个简单可用的spring boot + empx 组件库(亲测可用)
github 地址: https://github.com/tocrhz/mqtt-spring-boot-starter(PS:转自github 原作者的页面 )mqtt-spring-boot-starterMQTT starter for Spring Boot, easier to use.Support spring boot version: 1.5.x ~ 2.4.0This document is machine translated.1. maven 导入..原创 2021-05-11 23:09:50 · 730 阅读 · 0 评论 -
解决spring boot websocket不能使用@Autowire注入bean的最简单的办法
直接在构造方法中添加想要注入的参数,我这里注入了Jedis和UserCredentialsManager,搞定。@ServerEndpoint("/calGameServer/{token}")@Componentpublic class WebSocketServer { private Long userId; private UserCredentialsManager userCredentialsManager; public WebSocketS...原创 2021-05-07 16:04:37 · 370 阅读 · 0 评论 -
spring boot 打包jar后,resource下的模板文件读出为空的问题解决办法
此办法已验证可用,其他方法都不行。ClassPathResource classPathResource = new ClassPathResource("/template/resultTemple.xlsx");InputStream inputStream = classPathResource.getInputStream();//生成目标文件File somethingFile = File.createTempFile("Topic_Template", ".xlsx");try .原创 2020-08-17 13:40:01 · 915 阅读 · 0 评论 -
java 日常问题集
1、switch case时报Error:(209, 35) java: 需要常量表达式。原因是在INDICATOR接口中,定义常量用了Integer对象类型,应该改为int,就行了。原创 2020-08-08 12:46:32 · 108 阅读 · 0 评论