06 2020 档案
摘要:我在使用在Netty的MyUdpHandler中需要调用service的方法,但是在注入service时总是为null 解决方法: 1.自定义一个工具类实现ApplicationContextAware接口,当一个类实现ApplicationContextAware接口后,当这个类被spring加载
阅读全文
摘要:1.pom.xml中加入依赖 <dependency> <groupId>io.jsonwebtoken</groupId> <artifactId>jjwt</artifactId> <version>0.9.1</version> </dependency> 2.写TokenUtils 工具类,
阅读全文

浙公网安备 33010602011771号