lombok
安装lombok 引入jar包 <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>1.16.18</version> <scope>provided</scope> </dependency> 启用lombok File => Settings => Build, Execution, Deployment => Compiler => Annotation Processors勾选 Enable annotation processing 安装lombok插件 File => Settings => Plugins, 搜索lombok下载 代码编写构造函数相关:@AllArgsConstructo...
springboot2
springboot集成redis下载redis的windows安装包并安装 下载地址:https://github.com/MicrosoftArchive/redis/releases 安装就一路next,然后找到安装redis的目录,新建start.bat,并写入:redis-server.exe redis.windows.conf 点击start.bat启动(退出redis命令:Ctrl+c) 安装redis客户端Redis Desktop Manager 下载地址: https://pan.baidu.com/s/1Jvr9MbgFn4UJh4M1AMo3gA 提取码:3i9b 安装就一路next,然后先启动redis,然后,打开客户端 代码编写 新建StudentController类,并写入:package com.dj.app.springboot.web;import com.dj.app.springboot.service.StudentService;import org.springframework.beans.factory.annotati...
springboot
springboot学习所遇问题springboot项目中,右侧没有mavenproject 输入命令:shift + ctrl + A, 在输入Maven,选择ADD 设置maven镜像 在settings -> Build,Execution,Deployment -> Maven, 找到Maven home directory,打开该目录 找到conf/settings.xml, 在mirrors下写入以下内容:<mirrors> <mirror> <id>nexus-aliyun</id> <mirrorOf>*</mirrorOf> <name>Nexus aliyun</name> <url>http://maven.aliyun.com/nexus/content/groups/public</url> </mirror></mirrors> 更新jar包的最新版本 ...






