摘要: @SneakyThrows @Override public SpuVO queryDetail(Long id) { //1.查询spu SpuVO spuVO = spuMapper.queryInfoById(id); if(spuVO == null){ //是否存在此商品 throw ne 阅读全文
posted @ 2023-08-22 15:29 一个有理想的猿 阅读(31) 评论(0) 推荐(0)
摘要: A a= new A();B b = new B(); 声明el表达式 ExpressionParser paeser = new SpelExpressionParser(); 设置你要通过el表达式取的字段 Expression aid= paeser.parseExpression("id") 阅读全文
posted @ 2023-06-09 09:11 一个有理想的猿 阅读(264) 评论(0) 推荐(0)
摘要: 这是一个数组当有两个或以上线程,对其进行修改的时候 expectedModCount期望值 modCount 共享值 在使用迭代器的remove方法的时候实际也是list的remove(迭代器源码879行)但是迭代器中做了一个赋值操作,把修改后的值(modCount 共享值)赋值给了( expect 阅读全文
posted @ 2023-06-06 21:16 一个有理想的猿 阅读(121) 评论(0) 推荐(0)
摘要: File fi=new File("D:\\栾凌云返校证明");File[] li = fi.listFiles();返回文件夹中内容的名称 返回的是一个数组 System.out.println(Arrays.toString(li)); 将文件名称打印出来 返回结果: [D:\栾凌云返校证明\I 阅读全文
posted @ 2022-07-20 16:46 一个有理想的猿 阅读(191) 评论(0) 推荐(0)
摘要: package com.um.core.controller;import com.github.pagehelper.PageHelper;import com.github.pagehelper.PageInfo;import com.um.common.constant.HttpStatus; 阅读全文
posted @ 2022-06-15 10:03 一个有理想的猿 阅读(624) 评论(0) 推荐(0)
摘要: package com.um.core.config;import org.springframework.cache.annotation.CachingConfigurerSupport;import org.springframework.cache.annotation.EnableCach 阅读全文
posted @ 2022-06-15 09:52 一个有理想的猿 阅读(1158) 评论(0) 推荐(0)
摘要: package com.um.core.config;import org.apache.ibatis.io.VFS;import org.apache.ibatis.session.SqlSessionFactory;import org.mybatis.spring.SqlSessionFact 阅读全文
posted @ 2022-06-15 09:49 一个有理想的猿 阅读(1251) 评论(0) 推荐(0)
摘要: SpringSecurity+JWT做权限认证的时候, @PreAuthorize("@el.check(‘system:user:query’)") 调用这个方法 SecurityContextHolder.getContext().getAuthentication().getPrincipal 阅读全文
posted @ 2022-06-14 16:52 一个有理想的猿 阅读(175) 评论(0) 推荐(0)
摘要: 在使用MyBatis-plus自带的删除和更新方法时,它都是通过ID来进行删除和更新,而我们的实体类没有id这个字段。2022-05-1 在实体类上面添加 阅读全文
posted @ 2022-05-14 18:53 一个有理想的猿 阅读(1855) 评论(0) 推荐(0)
摘要: Map<key,value> 一个键的类型一个是值的类型 for (Object key :map.keySet()) 类型是Objeck 每一个键的名字 要遍历的数组map.keySet()是数组中的键集合 { //这个工具类的作用的是把这里面的值都拼上value map.put(key,new 阅读全文
posted @ 2022-04-17 17:36 一个有理想的猿 阅读(87) 评论(0) 推荐(0)