随笔分类 -  SpringBoot

SpringBoot相关知识
摘要:1. 引入依赖 <!-- mybatis相关依赖 --> <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <version>2.2 阅读全文
posted @ 2023-04-07 15:56 安徒生敲代码 阅读(41) 评论(0) 推荐(0) 编辑
摘要:1. 引入依赖 <!-- jdbc相关的依赖 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId> </dependency> <! 阅读全文
posted @ 2023-04-06 18:11 安徒生敲代码 阅读(30) 评论(0) 推荐(0) 编辑
摘要:在resources目录下新建logback.xml文件 <?xml version="1.0" encoding="UTF-8"?> <!-- scan:默认值为true,表示配置文件如果发生变化将会被重新加载; scanPeriod:监测配置文件是否发生变化的时间间隔,默认时间单位为毫秒,当sc 阅读全文
posted @ 2023-04-04 16:23 安徒生敲代码 阅读(196) 评论(0) 推荐(0) 编辑
摘要:1. 打开IDEA,点击左上角的File选项,打开菜单选择New,再打开菜单选择Project 2. 选择Spring Initializr,输入或选择项目相关的信息 3. 选择Spring Boot版本以及相应的依赖,并点击右下角的Create按钮进行项目创建 4. 项目创建完成后,点击左上角的F 阅读全文
posted @ 2023-04-04 11:58 安徒生敲代码 阅读(445) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示