点击查看详情
| # 解压后,配置环境变量 |
| MAVEN_HOME= C:\Program Files\apache-maven-3.6.3 |
| Path= %MAVEN_HOME%\bin |
| |
| # 配置setting.xml |
| # 指定本地仓库 |
| <localRepository>C:\Users\ychen\.m2\repository</localRepository> |
| |
| # 指定用户名密码 |
| <servers> |
| <server> |
| <id>maven-releases</id> |
| <username>admin</username> |
| <password>admin</password> |
| </server> |
| <server> |
| <id>maven-snapshots</id> |
| <username>admin</username> |
| <password>admin</password> |
| </server> |
| </servers> |
| |
| # 指定阿里云镜像,通过该镜像获取jar |
| <mirrors> |
| <mirror> |
| <id>nexus-aliyun</id> |
| <mirrorOf>central</mirrorOf> |
| <name>Nexus aliyun</name> |
| <url>http://maven.aliyun.com/nexus/content/groups/public</url> |
| </mirror> |
| <mirror> |
| <id>nexus-ychen</id> |
| <mirrorOf>*</mirrorOf> |
| <url>http://xxx.xxx.xxx.xxx:8081/repository/maven-public/</url> |
| </mirror> |
| </mirrors> |
| |
| # 将maven安装目录下的settings.xml复制到C:\Users\本机名\.m2 |
| |
| # 打开cmd测试 |
| mvn -v |
点击查看详情







点击查看详情
| <dependencies> |
| |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-web</artifactId> |
| <version>2.7.0</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-test</artifactId> |
| <version>2.7.0</version> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-configuration-processor</artifactId> |
| <version>2.7.0</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.baomidou</groupId> |
| <artifactId>mybatis-plus-boot-starter</artifactId> |
| <version>3.5.1</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.github.yulichang</groupId> |
| <artifactId>mybatis-plus-join</artifactId> |
| <version>1.2.4</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>mysql</groupId> |
| <artifactId>mysql-connector-java</artifactId> |
| <version>8.0.29</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.projectlombok</groupId> |
| <artifactId>lombok</artifactId> |
| <version>1.18.22</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.alibaba</groupId> |
| <artifactId>fastjson</artifactId> |
| <version>1.2.78</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-validation</artifactId> |
| <version>2.7.0</version> |
| </dependency> |
| </dependencies> |
| |
| server: |
| port: 8080 |
| error: |
| whitelabel: |
| enabled: true |
| spring: |
| application: |
| name: app |
| messages: |
| basename: messages |
| encoding: UTF-8 |
| devtools: |
| restart: |
| enabled: true |
| logging: |
| level: |
| com: |
| example: DEBUG |
| org: |
| springframework: |
| security: DEBUG |
| pattern: |
| console: '%clr(%d{E HH:mm:ss.SSS}){blue} %clr(%-5p) %clr(${PID}){faint} %clr(---){faint} # 控制台日志 |
| %clr([%8.15t]){cyan} %clr(%-40.40logger{0}){blue} %clr(:){red} %clr(%m){faint}%n' |
| @Data |
| @TableName("plate_set") |
| public class PlateSet implements Serializable { |
| |
| private static final long serialVersionUID = 1L; |
| |
| @TableId(value = "id", type = IdType.ASSIGN_ID) |
| private String id; |
| |
| @TableField(value = "created", fill = FieldFill.INSERT) |
| private Date created; |
| |
| @TableField(value = "updated", fill = FieldFill.INSERT_UPDATE) |
| private Date updated; |
| |
| @TableField(value = "deleted", fill = FieldFill.INSERT) |
| @TableLogic |
| private Integer deleted; |
| |
| @TableField(value = "version", fill = FieldFill.INSERT) |
| @Version |
| private Integer version; |
| |
| } |
点击查看详情
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-maven-plugin</artifactId> |
| <version>2.3.7.RELEASE</version> |
| </plugin> |
| </plugins> |
| </build> |
点击查看详情
| <distributionManagement> |
| <repository> |
| <id>maven-release</id> |
| <url>http://xxx.xxx.xxx.xxx:8081/repository/maven-releases/</url> |
| </repository> |
| <snapshotRepository> |
| <id>maven-snapshots</id> |
| <url>http://xxx.xxx.xxx.xxx:8081/repository/maven-snapshots/</url> |
| </snapshotRepository> |
| </distributionManagement> |
-
swagger -> 链接
-
验证注解 -> 链接
-
其他总结博客 -> 链接
-
构建cloud -> 链接
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?