2021.10.04
项目参考:
1、后端:https://www.bilibili.com/video/BV1y7411R73P
2、前端:https://www.bilibili.com/video/BV1fw411d7R5?p=31
感觉自己是个傻子,气死了气死了气死了
一 枚举类
应该这么写
还有一个贼恶心的事情,这个项目parent依赖了common,然后association继承了parent,从而association能用common中的工具类。
在解决这个枚举的问题时,如果我用了改了工具类,那么common模块就要重新编译一遍,否则association项目编译不通过,其他子模块也一样(有时候通过编译后,我在common的改动还不会生效,浪费了我好多时间,气死了)
或者 "找不到符号"等问题
// 时间类型相互转换的格式都是在SimpleDateFormat的构造器中设置
SimpleDateFormat sdf = new SimpleDateFormat("时间格式");
// 将String 转成 Date(其中时分秒都是0)
Date date = sdf.parse("2021-10-04");
// 将Date转成String
String dateString = sdf.format(date);
三 idea调试
1 如何不重启项目,换断点?
2 一行内有多个方法调用,如何进入某个方法调用?
点击进入step into,然后发现该行的3个方法调用变成品红色,想进哪个点哪个即可.



