上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页
摘要: linux命令: 1.cd 切换目录借助cd命令(切换目录),它会进入到fileA目录。# cd /fileA2.users 命令显示了目前已登录的用户 3.who 命令仅仅返回用户名称、日期、时间和主机信息 -b:显示上一次系统重启日期和时间。 -r:显示当前的运行级别。 -a,–all:显示累积 阅读全文
posted @ 2021-05-14 16:20 风骚羊肉串 阅读(59) 评论(0) 推荐(0) 编辑
摘要: 当我们需要在事务控制的service层类中使用try catch 去捕获异常后,就会使事务控制失效,因为该类的异常并没有抛出,就不是触发事务管理机制。怎样才能即使用try catch去捕获异常,而又让出现异常后spring回滚呢,这里就要用到 TransactionAspectSupport.cur 阅读全文
posted @ 2021-04-27 10:40 风骚羊肉串 阅读(727) 评论(0) 推荐(0) 编辑
摘要: @JsonIgnore注解 作用:在json序列化时将pojo中的一些属性忽略掉,标记在属性或者方法上,返回的json数据即不包含该属性。 阅读全文
posted @ 2021-04-25 15:29 风骚羊肉串 阅读(270) 评论(0) 推荐(0) 编辑
摘要: //@Data 生成getter,setter ,toString等函数 //@NoArgsConstructor 生成无参构造函数 //@AllArgsConstructor //生成全参数构造函数 阅读全文
posted @ 2021-04-25 11:39 风骚羊肉串 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 链接:https://blog.csdn.net/Tzh_cc/article/details/111476991 阅读全文
posted @ 2021-04-23 15:09 风骚羊肉串 阅读(32) 评论(0) 推荐(0) 编辑
摘要: package com.cxqy.business.security.util;import java.util.regex.Matcher;import java.util.regex.Pattern;/** * 手机号校验 */public final class MobileVerificat 阅读全文
posted @ 2021-04-23 11:51 风骚羊肉串 阅读(164) 评论(0) 推荐(0) 编辑
摘要: package com.cxqy.community.util;/** * @Author yjl * @Date 2021/4/9 15:45 * @Version 1.0 */public class InterceptNameUtil { /** * 定义所有常量 */ public stat 阅读全文
posted @ 2021-04-09 16:38 风骚羊肉串 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 转自:re硕君 public static void main(String[] args) { String str = "123.56"; Double d = 123.56; BigDecimal b1 = new BigDecimal(str); //输出123.56 BigDecimal  阅读全文
posted @ 2021-03-31 10:35 风骚羊肉串 阅读(626) 评论(0) 推荐(0) 编辑
摘要: double类型数据加减运算时,会出现精度缺失。打个比方double number1 = 1;double number2 = 0.2;double number3 =number1 + number2 ;理论上number3会等于1.2;但是在实际的操作过程中会出现1.299999999999这种 阅读全文
posted @ 2021-03-30 16:14 风骚羊肉串 阅读(325) 评论(0) 推荐(0) 编辑
摘要: <?extends Object>表示Collection集合中可以存放任意的Object子类 详细情况请看sun 网站 示列代码: public BusinessAuthenticationToken(Object principal, String phone, Integer merchant 阅读全文
posted @ 2021-03-25 10:55 风骚羊肉串 阅读(153) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页