随笔分类 - java
摘要:package com.haoyihang.test.invoke; import java.beans.Introspector; import java.beans.PropertyDescriptor; import java.lang.reflect.Field; import java.l
阅读全文
摘要:import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageInfo; public PageInfo<A> queryList(@RequestBody A a) { PageHelper.startPage(
阅读全文
摘要:获得当前运行文件在服务器上的绝对路径 1.request.getSession().getServletContext().getRealPath("/"); 2.ContextLoader.getCurrentWebApplicationContext().getServletContext().
阅读全文
摘要:https://www.kuangstudy.com/bbs/1374942542566551554
阅读全文
摘要://1.首先开启自动代理@Configuration @EnableAspectJAutoProxy public class TokenEndPointAspectConfiguration { @Bean public TokenEndPointAspec tokenEndPointAspec(
阅读全文
摘要:file1=new File(path);//path 为文件地址绝对路径 //File ff = new File(file.getAbsolutePath());相对路径获取方法//String copyPath = ff.getParentFile().getParent(); String
阅读全文
摘要://将map-->转换成实体类对象(Dto) DtoStr=JSON.toJSONString(map);//-->Map集合转换成JSON字符串 Dto=JSON.parseObject(DtoStr,Dto.class);//将JSON字符串转换成Dto(实体类)需要引入的依赖: <depend
阅读全文
摘要:import java.util.ArrayList;import java.util.List;import java.util.ListIterator;import java.util.Scanner; public class DequeueNumThree { //数组 public st
阅读全文
摘要:1.将字符串拆成单个字符,逐一判断是否是整数 public class PanDuan1 { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); boolean flag = true;
阅读全文

浙公网安备 33010602011771号