摘要:
随机数 String s = UUID.randomUUID().toString(); System.out.println(s); //生成的字符串 含有 - 我们可以使用replaceAll 去掉 - String s1 = s.replaceAll("-", ""); System.out. 阅读全文
摘要:
声明式事务 指使用注解或 XML 配置的方式来控制事务的提交和回滚 Spring声明式事务准备工作 1. 配置环境 <!-- 声明式事务依赖--> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-tx</a 阅读全文