whaifree
b6e5672f09
- 新增了多个 leetcode 问题的 Java 解决方案,包括: - 问题 16: 最接近的三数之和 - 问题 43: 字符串相乘 - 问题 148: 排序链表 - 问题274: H 指数 - 问题 322: 零钱兑换 - 问题 377: 组合总和Ⅳ - 问题474: 一和零 - 问题 740: 删除并获得最大点数 - 更新了部分现有代码文件,优化了结构和注释 Default Changelist .gitignore AbstractClass.java AbstractFactoryPattern.java application.yaml AProviderController.java AService.java BProviderController.java BroomFilter.java BService.java CacheComparatorDemo.java CacheConfig.java CacheConstants.java CacheDecoratorController.java DynamicThreadPoolController.java EventController.java FactoryAndStrategy.java FilterConfig.java GlobalExceptionHandler.java HttpStatus.java IdempotenceController.java LeetCode002.java LeetCode16.java LeetCode33.java LeetCode43.java LeetCode84.java LeetCode148.java LeetCode274.java LeetCode322.java LeetCode377.java LeetCode474.java LeetCode740.java LimitType.java ListNode.java LoadBalanceConfig.java MinioController.java mvnw mvnw.cmd MyAutoConfiguration.java P1.java PersonProtocol.proto pom.xml protocolDemo.java RabbitMQController.java RateLimitAspect.java RateLimiter.java RedEnvelopeController.java RedisConfig.java RedisDataTest.java redisson.yaml RedissonConfig.java RestConfig.java ResVo.java RobEnvelope.lua SelfFilter.java spring.factories SpringDemoApplication.java SpringDemoApplicationTests.java SSEEmitter.java TestController.java UserService.java WhiteListController.java WxQrLoginController.java 工厂模式的几种类型,简单工厂、工厂方法、抽象工厂.md Unversioned Files D:\project\LeetCode\SpringCloud\ServiceA\src\main\resources\application.yaml D:\project\LeetCode\SpringCloud\ServiceB\src\main\resources\application.yaml D:\project\LeetCode\SpringCloud\ServiceA\pom.xml D:\project\LeetCode\SpringCloud\ServiceB\pom.xml D:\project\LeetCode\SpringCloud\pom.xml D:\project\LeetCode\SpringCloud\ServiceA\src\main\java\com\whai\springcloud\servicea\ServiceAApplication.java D:\project\LeetCode\SpringCloud\ServiceA\src\test\java\com\whai\springcloud\servicea\ServiceAApplicationTests.java D:\project\LeetCode\SpringCloud\ServiceB\src\main\java\com\whai\springcloud\serviceb\ServiceBApplication.java D:\project\LeetCode\SpringCloud\ServiceB\src\test\java\com\whai\springcloud\serviceb\ServiceBApplicationTests.java D:\project\LeetCode\SpringCloud\ServiceA\src\test\java\com\whai\springcloud\springcloud\SpringCloudApplicationTests.java D:\project\LeetCode\SpringCloud\ServiceB\src\test\java\com\whai\springcloud\springcloud\SpringCloudApplicationTests.java
172 lines
6.0 KiB
XML
172 lines
6.0 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<parent>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-parent</artifactId>
|
|
<version>3.3.4</version>
|
|
<relativePath/> <!-- lookup parent from repository -->
|
|
</parent>
|
|
<groupId>cn.whaifree</groupId>
|
|
<artifactId>SpringDemo</artifactId>
|
|
<version>0.0.1-SNAPSHOT</version>
|
|
<name>SpringDemo</name>
|
|
<description>SpringDemo</description>
|
|
<url/>
|
|
<licenses>
|
|
<license/>
|
|
</licenses>
|
|
<developers>
|
|
<developer/>
|
|
</developers>
|
|
<scm>
|
|
<connection/>
|
|
<developerConnection/>
|
|
<tag/>
|
|
<url/>
|
|
</scm>
|
|
<properties>
|
|
<java.version>17</java.version>
|
|
</properties>
|
|
<dependencies>
|
|
<!-- caffeine 缓存使用姿势 -->
|
|
<dependency>
|
|
<groupId>com.github.ben-manes.caffeine</groupId>
|
|
<artifactId>caffeine</artifactId>
|
|
</dependency>
|
|
<!-- https://mvnrepository.com/artifact/com.baomidou/mybatis-plus-boot-starter -->
|
|
<dependency>
|
|
<groupId>com.baomidou</groupId>
|
|
<artifactId>mybatis-plus-boot-starter</artifactId>
|
|
<version>3.5.1</version>
|
|
</dependency>
|
|
<!--mybatis-->
|
|
<dependency>
|
|
<groupId>org.mybatis.spring.boot</groupId>
|
|
<artifactId>mybatis-spring-boot-starter</artifactId>
|
|
<version>3.0.2</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.github.xiaoymin</groupId>
|
|
<artifactId>knife4j-openapi3-jakarta-spring-boot-starter</artifactId>
|
|
<version>4.4.0</version>
|
|
</dependency>
|
|
|
|
<!-- <!– https://mvnrepository.com/artifact/org.redisson/redisson-spring-boot-starter –>-->
|
|
<!-- <dependency>-->
|
|
<!-- <groupId>org.redisson</groupId>-->
|
|
<!-- <artifactId>redisson-spring-boot-starter</artifactId>-->
|
|
<!-- <version>3.23.5</version>-->
|
|
<!-- </dependency>-->
|
|
<!--redisson-->
|
|
<dependency>
|
|
<groupId>org.redisson</groupId>
|
|
<artifactId>redisson</artifactId>
|
|
<version>3.16.8</version>
|
|
</dependency>
|
|
<!-- rabbitMQ-->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-amqp</artifactId>
|
|
</dependency>
|
|
<!--minio-->
|
|
<dependency>
|
|
<groupId>io.minio</groupId>
|
|
<artifactId>minio</artifactId>
|
|
<version>8.4.3</version>
|
|
</dependency>
|
|
<!-- 其他依赖 -->
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.dataformat</groupId>
|
|
<artifactId>jackson-dataformat-xml</artifactId>
|
|
<version>2.13.0</version> <!-- 根据实际情况选择最新稳定版本 -->
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
<groupId>com.google.guava</groupId>
|
|
<artifactId>guava</artifactId>
|
|
<version>31.0.1-jre</version>
|
|
</dependency>
|
|
|
|
<!--FastJson-->
|
|
<dependency>
|
|
<groupId>com.alibaba</groupId>
|
|
<artifactId>fastjson</artifactId>
|
|
<version>2.0.36</version>
|
|
</dependency>
|
|
<!--hutool-->
|
|
<dependency>
|
|
<groupId>cn.hutool</groupId>
|
|
<artifactId>hutool-all</artifactId>
|
|
<version>5.8.13</version>
|
|
</dependency>
|
|
<!--aspect-->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-aop</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
<!--jdbc-->
|
|
<groupId>mysql</groupId>
|
|
<version>8.0.33</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-amqp</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-data-jdbc</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-data-redis</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-jdbc</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.projectlombok</groupId>
|
|
<artifactId>lombok</artifactId>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<!-- <dependency>-->
|
|
<!-- <groupId>org.springframework.amqp</groupId>-->
|
|
<!-- <artifactId>spring-rabbit-test</artifactId>-->
|
|
<!-- <scope>test</scope>-->
|
|
<!-- </dependency>-->
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
<configuration>
|
|
<excludes>
|
|
<exclude>
|
|
<groupId>org.projectlombok</groupId>
|
|
<artifactId>lombok</artifactId>
|
|
</exclude>
|
|
</excludes>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
</project>
|