![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java
文章平均质量分 92
沐烬
皆有定数
展开
-
【小本本】Java NIO 读取文件
public class Example { public static void main(String[] args) { Path path = Paths.get("/file/path"); readWay1(path); readWay2(path); readWa...原创 2020-03-17 11:25:04 · 135 阅读 · 0 评论 -
Spring AOP 自定义注解检查请求头(示例)
代码传送门 需求 一个 Controller 可以处理 HTTP 请求 @RestController public class DemoController { @GetMapping("/hello") public String hello(@RequestParam String name) { return "Hello, " + name; }...原创 2018-11-14 18:17:21 · 6217 阅读 · 6 评论 -
Type javax.xml.bind.JAXBContext not present
Java 11 启动 Spring Boot 应用报错 Type javax.xml.bind.JAXBContext not present Unable to start embedded Tomcat 错误原因:Java 9 之后,有些模块默认不会加载 解决方案(一):添加依赖(已验证) Gradle: compile('javax.xml.bind:jaxb-api:2.3.0') c...原创 2018-11-28 17:55:24 · 1414 阅读 · 0 评论