06 2022 档案

摘要:添加依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-websocket</artifactId> </dependency> 添加配置 package org.qx 阅读全文
posted @ 2022-06-14 19:40 浅笑19 阅读(726) 评论(0) 推荐(0) 编辑
摘要:原文出处:https://blog.51cto.com/u_15288542/3030781 阅读全文
posted @ 2022-06-08 16:48 浅笑19 阅读(189) 评论(0) 推荐(0) 编辑
摘要:接口 //接口 public interface Shape { void draw(); } 实现 //实现1 @Service public class Rectangle implements Shape { @Override public void draw() { System.out. 阅读全文
posted @ 2022-06-08 16:40 浅笑19 阅读(184) 评论(0) 推荐(0) 编辑
摘要:// 忽略全部类型的警告 @SuppressWarnings("all") // 忽略未检查的转化,例如集合没有指定类型的警告 @SuppressWarnings("unchecked") // 忽略未使用的变量的警告 @SuppressWarnings("unused") // 忽略与使用Clos 阅读全文
posted @ 2022-06-08 16:30 浅笑19 阅读(1474) 评论(0) 推荐(0) 编辑
摘要:@Bean public Docket createRestApi() { return new Docket(DocumentationType.SWAGGER_2) // 详细定制 .apiInfo(apiInfo()).select().apis(RequestHandlerSelectors 阅读全文
posted @ 2022-06-08 16:26 浅笑19 阅读(506) 评论(0) 推荐(0) 编辑
摘要:简单示例 public static void test10(){ // 创建JavaScript引擎 ScriptEngine jsEngine = new ScriptEngineManager().getEngineByName("js"); // ScriptEngine jsEngine 阅读全文
posted @ 2022-06-08 16:25 浅笑19 阅读(2200) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示