摘要:
短链接口设计 //短链接服务 跳转方式,实现短链接转长链接的请求。 @GetMapping("/{code}") public String redirectUrl(@PathVariable("code") String code){ return "redirect:"+shortUrl.get
阅读全文
posted @ 2024-04-21 14:42
oktokeep
阅读(19)
推荐(0)
编辑
摘要:
mongodb数据库连接格式 mongodb://账号:密码@mongodb服务器IP:27017/数据库名称
阅读全文
posted @ 2024-04-21 14:19
oktokeep
阅读(1)
推荐(0)
编辑
摘要:
泛型模板化设计使用-订单搜索接口 1.定义订单搜索接口 package com.example.core.mydemo.java.templateQuery; //暂不使用该接口 //public interface SearchService<T extends BaseRequest,F ext
阅读全文
posted @ 2024-04-21 14:08
oktokeep
阅读(1)
推荐(0)
编辑
摘要:
泛型模板化设计DEMO 1. 定义Result泛型类 package com.example.core.mydemo.java.fanxing; public class Result<T> { T response; public T getResponse() { return response
阅读全文
posted @ 2024-04-21 14:04
oktokeep
阅读(2)
推荐(0)
编辑
摘要:
泛型对象的使用 package com.example.core.mydemo.java; import java.util.Objects; /** * output: * null * null * java.lang.Object@3b07d329 * 0 * java.lang.Object
阅读全文
posted @ 2024-04-21 13:59
oktokeep
阅读(1)
推荐(0)
编辑
摘要:
程序模块化设计结构化开发 1.模块化开发,符合高内聚,低耦合的设计。在具体的程序修改的时候,程序代码不过于分散。有利于维护。同时也有利于对外提供接口能力。2.模块化更多的规模或能力,可以理解为微服务。独立部署独立运行。不影响整理的系统功能。3.举例:对外部入参做转换处理,可以将入参模块的当成一个整体
阅读全文
posted @ 2024-04-21 13:58
oktokeep
阅读(1)
推荐(0)
编辑