此处仅做初步扫盲记录,技术学习还需要继续深入
1、@EqualsAndHashCode(callSuper = false)(https://blog.csdn.net/zhanlanmg/article/details/50392266)
lombok中的属性@Data相当于@Getter @Setter @RequiredArgsConstructor @ToString @EqualsAndHashCode这5个注解的合集。
2、@Accessors(chain = true)(https://www.jianshu.com/p/67a15b2e4a92)
@Accessors(chain=true)设置setter方法返回值是this对象。
@Data
@Accessors(chain=true)
public class User {
private Integer id;
private String name;
private Integer age;
public static void main(String[] args) {
//开起chain=true后可以使用链式的set
User user=new User().setAge(31).setName("pollyduan");//返回对象
System.out.println(user);
}
}
3、@TableId和@TableField不能同时使用(https://www.imooc.com/qadetail/320911)
MP开启了驼峰转下划线,操作的sql语句,会根据属性名转换为下划线的列名称。
@TableId MP中的注解(https://blog.csdn.net/G_liunian/article/details/104973510)
type = IdType.AUTO
4、接口如何使用 请求URL : http://localhost:9999/put?date=2020-03-07 13:13:13
5、@DateTimeFormat 和 @JsonFormat 用法介绍(https://blog.csdn.net/qq_38340601/article/details/104721336)
@DateTimeFormat 该注解是将从前端请求到的String类型转换成Date类型,此字段一般加在属性上;
@JsonFormat注解 将后端的Date的类型传递到前端,主要作用指定传输的格式以及时区。
/**水质数据创建日期*/
@Excel(name = "水质数据创建日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "水质数据创建日期")
private java.util.Date createDate;
6、MySQL中的Date_Format(date,format)函数用法(MySQL日期格式化函数DATE_FORMAT(‘2020-09-14 14:08:16‘,‘%y%m%d %H%I%S‘))
SELECT * FROM event_log a
WHERE
DATE_FORMAT(a.`create_time`,'%Y-%m-%d %h:%i:%s') >='2017-03-02 10:00:00'
AND
DATE_FORMAT(a.`create_time`,'%Y-%m-%d %h:%i:%s') <= '2017-03-02 10:20:00'
7、@Slf4j简单介绍(https://blog.csdn.net/qq_15245487/article/details/100142287)
facade 英 /fəˈsɑːd/ 外观;外观设计模式
简单日记门面(simple logging Facade for Java)SLF4J是为各种loging APIs提供一个简单统一的接口,从而使得最终用户能够在部署的时候配置自己希望的loging APIs实现。slf4j并不是一种具体的日志系统,而是一个用户日志系统的facade,允许用户在部署最终应用时方便的变更其日志系统。
*8、get和post介绍 (https://www.zhihu.com/question/28586791) *
最明显的特点是get的参数经常写在url中,post的参数在请求体中,但是底层都是TCP/IP协议,本质没有区别;
WEB开发中,使用JSON-RPC好,还是RESTful API好?(https://www.zhihu.com/question/28570307/answer/541465581?hb_wx_block=0)
8.1 阮一峰的开发手册 (http://www.ruanyifeng.com/blog/developer/)
9、QueryWrapper使用(https://blog.csdn.net/bird_tp/article/details/105587582)
10、HttpServletRequest HttpServletResponse MultipartHttpServletRequest介绍(https://blog.csdn.net/qq877507054/article/details/51395839)
讲的真好,看完忘记了好多
MultipartHttpServletRequest (https://blog.csdn.net/qq_35525955/article/details/80904844)
11、http请求协议 (https://www.runoob.com/http/http-content-type.html)
request line \ header \ 空行 \ body
12、JSONObject介绍 (https://blog.csdn.net/u012448904/article/details/84292821) (https://blog.csdn.net/xifei66/article/details/59058289?utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromMachineLearnPai2%7Edefault-1.control&dist_request_id=&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromMachineLearnPai2%7Edefault-1.control)
221




被折叠的 条评论
为什么被折叠?



