【MapSheep】
[好记性不如烂笔头]
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 33 下一页
摘要: /** * Labeled block。 * * @param args */ public static void main(String[] args) { task: { int age = 25; System.out.println("start"); if (age < 30) { br 阅读全文
posted @ 2021-07-23 18:27 (Play) 阅读(224) 评论(0) 推荐(0)
摘要: import cn.hutool.core.lang.Assert; import com.alibaba.fastjson.JSON; import com.example.demo.Demo.dto.Student; import java.util.*; import java.util.st 阅读全文
posted @ 2021-07-23 10:18 (Play) 阅读(1099) 评论(0) 推荐(0)
摘要: 自定义异常检测 条件为 false 时触发 Assert.isTrue(stuList.size() > 0, "当前集合为空"); 解决方案 调整 关键字为 true 阅读全文
posted @ 2021-07-23 10:15 (Play) 阅读(1657) 评论(0) 推荐(0)
摘要: 优秀的程序员, 不只是有能力写得一手好代码, 更多的是需要具备一些工程师素养, 比如: 1.对技术有独特的兴趣和追求, 持续学习. 2.有全局观, 总能站在一个更高、更全局的视角去考虑问题. 3.处理事情小心谨慎, 而不是凭直觉和过去的经验主观臆断. 4.沟通能力强, 能够用方便他人理解的方式来描述 阅读全文
posted @ 2021-07-21 10:53 (Play) 阅读(276) 评论(0) 推荐(0)
摘要: 调用 String ua = request.getHeader("User-Agent"); if (StringUtil.checkAgentIsMobile(ua)) { System.out.println("来自移动端访问"); } else { System.out.println("来 阅读全文
posted @ 2021-07-20 16:44 (Play) 阅读(682) 评论(0) 推荐(0)
摘要: /** * BigDecimal 保留两位小数进行对比 */ public class BigDecimalTest { public static void main(String[] args) { BigDecimal big1 = new BigDecimal("3.14"); BigDec 阅读全文
posted @ 2021-07-20 16:42 (Play) 阅读(407) 评论(0) 推荐(0)
摘要: 示例代码 import com.alibaba.fastjson.JSON; import com.example.demo.Demo.dto.Student; import com.example.demo.pojo.StudentPlus; import java.util.ArrayList; 阅读全文
posted @ 2021-07-20 16:39 (Play) 阅读(274) 评论(0) 推荐(0)
摘要: 报错 com.mongodb.MongoCommandException: Command failed with error 48 (NamespaceExists): 'a collection 'mapMongoDB.macCode01' already exists' on server l 阅读全文
posted @ 2021-07-20 10:52 (Play) 阅读(1296) 评论(0) 推荐(0)
摘要: 摘要 插入摘要右侧图片 阅读全文
posted @ 2021-07-20 10:45 (Play) 阅读(1662) 评论(0) 推荐(0)
摘要: mongo-java-driver操作MongoDB 引入MongoDB依赖 <dependency> <groupId>org.mongodb</groupId> <artifactId>mongo-java-driver</artifactId> <version>3.8.2</version> 阅读全文
posted @ 2021-07-19 19:55 (Play) 阅读(173) 评论(0) 推荐(0)
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 33 下一页