摘要: 程序包org.springframework.web.bind.annotation不存在 原因: 未知 解决办法 File > Settings > Build, Execution, Deployment > Build Tools > Maven > Runner,勾选 Delegate ID 阅读全文
posted @ 2021-07-26 21:16 蓝灵幽 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-07-26 20:58 蓝灵幽 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 一、Gitee插件安装 二、Gitee账户添加 三、把本地项目推送到Gitee上 四、从Gitee上拉取项目到本地 五、分支 假设 springbootdemo 是公司核心代码包,后续开发项目都是基于此项目,拉取项目时如上图操作,拉取时修改工程名 核心代码-拉取子项目详解 拉取 springboot 阅读全文
posted @ 2021-07-26 15:47 蓝灵幽 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 一、安装 IntelliJ Lombok plugin 二、启用注解 1. File -> New Projects Settings -> Settings for New Projects 打开 新项目默认设置 这里没有使用 File -> Settings 进行设置,是因为这个设置仅对当前打开 阅读全文
posted @ 2021-07-23 13:43 蓝灵幽 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 1. IntelliJ IDEA 内点击 Create New Project 创建新项目 如果IDEA已经打开了,通过 File -> New -> Project 创建新工程,或者 File -> Close Project 返回到编辑器首页 2. 指定项目模板服务器 默认服务器 https:/ 阅读全文
posted @ 2021-07-23 11:35 蓝灵幽 阅读(47) 评论(0) 推荐(0) 编辑
摘要: 皮肤设置 File > Settings > Appearance > Theme 阅读全文
posted @ 2021-07-22 17:38 蓝灵幽 阅读(399) 评论(0) 推荐(0) 编辑
摘要: 一、Maven下载与安装 http://maven.apache.org/download.cgi 1. maven下载后是一个压缩包,直接解压即可使用 2. 配置系统环境变量 新建一个叫M2_HOME的变量,对应值是manve的解压目录 然后修改Path值,添加%M2_HOME%\bin ( Pa 阅读全文
posted @ 2021-07-22 17:06 蓝灵幽 阅读(65) 评论(0) 推荐(0) 编辑
摘要: IDEA设置分两种,当前应用设置 和 新建项目默认设置 通过 File > Settings 进行的设置 这样设置只对当前项目有效,当我们重新创建新工程时,会发现配置都还原了 解决方案: File > New Projects Settings > Settings for New Projects 阅读全文
posted @ 2021-07-22 16:40 蓝灵幽 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 1. 默认扫描 从启动类所在包开始,扫描当前包及其子级包下的所有文件 2. 指定扫描 这种情况,就是因为启动类扫描不到相关类导致的,使用 @ComponentScan 指定扫描目录即可解决, 另外如果第三方包的类也使用了@Component、@Controller、等.... 这类注解,也可通过 @ 阅读全文
posted @ 2021-07-08 16:21 蓝灵幽 阅读(698) 评论(0) 推荐(0) 编辑
摘要: 一、代码方式注册 需要使用 Spring Boot 提供的 FilterRegistrationBean 注册 Filter 1. 创建一个自定义Filter @Slf4j public class TestFilter implements Filter { private String logi 阅读全文
posted @ 2021-07-08 09:54 蓝灵幽 阅读(146) 评论(0) 推荐(0) 编辑