摘要: 首发于Enaium的个人博客 public static void main(String[] args) { JFrame jFrame = new JFrame("Test"); jFrame.setSize(500, 500); jFrame.setLocationRelativeTo(jFr 阅读全文
posted @ 2022-03-10 19:45 Enaium 阅读(89) 评论(0) 推荐(0)
摘要: 首发于Enaium的个人博客 首先需要了解一下大概的步骤 登录生成一个Token存入Redis有效期为30分钟,返回到前端 之后前端每次请求,带上登录时返回的Token 服务器判断前端带来的Token是否在Redis服务器中 存在放行并且重置Token有效期,不存在拦截 一个简简单单的登录请求 @R 阅读全文
posted @ 2022-03-10 19:45 Enaium 阅读(891) 评论(0) 推荐(1)
摘要: 首发于Enaium的个人博客 public class Server { public static void main(String[] args) { EventLoopGroup eventLoopGroup = new NioEventLoopGroup(); ServerBootstrap 阅读全文
posted @ 2021-07-19 16:03 Enaium 阅读(254) 评论(0) 推荐(0)
摘要: 首发于Enaium的个人博客 继续使用上个文章的类容器 创建一个注解 @Target(ElementType.FIELD) @Retention(RetentionPolicy.RUNTIME) public @interface Autowired { } 遍历所有字段包括私有的 private 阅读全文
posted @ 2021-07-16 21:37 Enaium 阅读(939) 评论(0) 推荐(0)
摘要: 首发于Enaium的个人博客 新建2个类 public class Test1 { } public class Test2 { public void render() { System.out.println("Test2"); } } public class ClassContainer { 阅读全文
posted @ 2021-07-16 21:13 Enaium 阅读(87) 评论(0) 推荐(0)
摘要: 首发于Enaium的个人博客 public class WalkClasspathAllClasses { public static void main(String[] args) throws URISyntaxException, IOException { List<URL> urls = 阅读全文
posted @ 2021-07-16 10:26 Enaium 阅读(319) 评论(0) 推荐(0)
摘要: 首发于Enaium的个人博客 使用树API来生成一个类 public static void main(String[] args) { ClassWriter classWriter = new ClassWriter(ClassWriter.COMPUTE_MAXS); ClassNode cl 阅读全文
posted @ 2021-07-16 10:25 Enaium 阅读(90) 评论(0) 推荐(0)
摘要: 首发于Enaium的个人博客 不用XML只用注解 首先需要创建6个注解 SQL用于输入SQL语句 @Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) public @interface SQL { String[] valu 阅读全文
posted @ 2021-04-21 22:09 Enaium 阅读(59) 评论(0) 推荐(0)
摘要: 首发于Enaium的个人博客 注册账户 https://issues.sonatype.org 发布问题(创建新的工程) https://issues.sonatype.org/secure/CreateIssue.jspa?issuetype=21&pid=10134 摘要:项目名称 Group 阅读全文
posted @ 2021-04-15 12:53 Enaium 阅读(317) 评论(0) 推荐(0)
摘要: 首发于Enaium的个人博客 测试类,需要混淆这里所有的字符串,上一期我们学习了如果插入一个常量,那么拦截插入常量的时候判断是不是字符串,如果是就混淆它。 public class Learn5Test { private final String name = "Enaium"; private 阅读全文
posted @ 2021-03-19 20:42 Enaium 阅读(55) 评论(0) 推荐(0)