摘要: 1.介绍 Spring(SpringBoot)框架的路径解析都是按照Ant的风格。 Spring中的具体实现: org.springframework.util.AntPathMatcher ? 匹配1个字符 /dir/app? 匹配:/dir/app1、/dir/app2 不匹配:/dir/app 阅读全文
posted @ 2023-11-24 16:32 coder_Fish 阅读(751) 评论(0) 推荐(0)
摘要: Java 7 中引入的对资源 try-with-resources ,声明在 try 块中使用的资源,并保证资源将在该块执行后关闭。声明的资源需要实现自动关闭接口。 1.使用资源try 典型的try-catch-finally块: Scanner scanner = null; try { scan 阅读全文
posted @ 2023-11-24 14:28 coder_Fish 阅读(53) 评论(0) 推荐(0)