- 博客(6)
- 资源 (1)
- 收藏
- 关注
原创 Java中list实现排序的几种方式
1.运用Collections.sort()方法(只包含Integer类型的单属性类型):public class Text { public static void main(String[] args) { List<Integer> res = new ArrayList<Integer>(); res.add(2); res.add(4); res.add(3); res.add(0); System.out.println(res); C
2021-07-13 17:41:02 1533
原创 导入非中央仓库依赖包的SSM项目步骤
1.设置maven为本地目录仓库2.导入外部的包点击maven执行 路径查看外部包是否导入项目3.配置tomcat选择本地Tomcat(local tomcat)
2021-07-13 17:04:27 169
原创 SSM框架编写测试类
import com.alibaba.fastjson.JSONObject;import com.reemoon.base.Response;import com.reemoon.controller.TTaskController;import com.reemoon.dao.response.ReportResponse;import com.reemoon.request.ReportTypeRequest;import com.reemoon.service.TTaskService;
2021-07-10 17:21:26 831
原创 Java项目中实现获取用户名,创建时间,随机生成ID
//设置ID String id=UUID.randomUUID().toString().replace("-",""); //设置创建时间(data类型) sSupplier.setCreateTime(new Date()); //设置创建人(获取登录用户名) String founder= SecurityContextHolder.getContext().getAuthentication().getName(...
2021-07-07 10:52:43 492
原创 The <project> element is the root of the descriptor.
IDEA导入maven项目时候pom文件报如下错误:Tag name: project Description : The element is the root of the descriptor.The following table lists all of the possible child elements. Version : 3.0.0+解决办法:Maven Reimport之后无效 ,之后引入将各个module 修改JDK版本为1.8,然后再修改 Perferences ->
2021-07-05 09:54:03 33170 6
原创 解决Java中JWT的token认证接口测试时:认证失败,无法访问系统资
步骤:登录页面后,右击检查->network->XHR-》复制Authorization的内容粘贴到postman中安全认证哪里,类型下载token。
2021-07-02 10:52:11 1573
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人