随笔分类 -  software engineering / Java

摘要:@RestController It is a convenience syntax for @Controller and @ResponseBody together,This indicates that the class is a controller,and that all the m 阅读全文
posted @ 2023-04-05 10:07 Ashe|||^_^ 阅读(16) 评论(0) 推荐(0)
摘要:@FunctionalInterface public interface MyInterface { void print(); } 当函数式接口MyInterface充当了某个方法的参数时,使用此方法有以下几种方式 1)新建一个类,实现此接口然后重写其抽象方法,然后创建这个类的对象,并调用该方法 阅读全文
posted @ 2023-03-29 23:06 Ashe|||^_^ 阅读(29) 评论(0) 推荐(0)
摘要:国内开发主流使用的orm框架大都是Mybatis/Mybatis-Plus,然而JPA也是一款非常出色的orm框架,接下来就演示如何使用JPA来实现基本的CRUD操作。 JDK版本:JDK 21.0.3 数据库:MySQL 8.0.37 SpringBoot版本:Spring Boot 3.3.0 阅读全文
posted @ 2023-03-29 21:09 Ashe|||^_^ 阅读(156) 评论(0) 推荐(0)