1
This commit is contained in:
@@ -21,11 +21,23 @@
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter</artifactId>
|
||||
</dependency>
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>com.aivfo</groupId>-->
|
||||
<!-- <artifactId>aivfo-dfs-client-spring-boot-starter</artifactId>-->
|
||||
<!-- <version>1.0.0-SNAPSHOT</version>-->
|
||||
<!-- </dependency>-->
|
||||
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>org.springframework.boot</groupId>-->
|
||||
<!-- <artifactId>spring-boot-starter-web</artifactId>-->
|
||||
<!-- </dependency>-->
|
||||
|
||||
<dependency>
|
||||
<groupId>com.aivfo</groupId>
|
||||
<artifactId>aivfo-kafka-spring-boot-starter</artifactId>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.retry</groupId>
|
||||
<artifactId>spring-retry</artifactId>
|
||||
|
||||
+1
-1
@@ -3,6 +3,7 @@ package com.wyl.spring.boot.common.service.impl;
|
||||
import com.wyl.spring.boot.common.service.LogTestService;
|
||||
import com.wyl.spring.boot.common.spel.annotation.SpelTest;
|
||||
import com.wyl.spring.boot.common.spel.bean.Order;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
@@ -11,7 +12,6 @@ import java.util.List;
|
||||
@Service
|
||||
public class LogTestServiceImpl implements LogTestService {
|
||||
|
||||
|
||||
@Override
|
||||
// @LogTest
|
||||
@Transactional
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
auth.should.skip.url[0] =1
|
||||
auth.should.skip.url[1] =2
|
||||
auth.should.skip.url[2] =3
|
||||
auth.should.skip.url[0]=1
|
||||
auth.should.skip.url[1]=2
|
||||
auth.should.skip.url[2]=3
|
||||
aivfo.dfs.fastdfs.enable=true
|
||||
aivfo.dfs.fastdfs.trackerServers=172.23.194.180:22122
|
||||
aivfo.kafka.properties.ips=192.168.31.89:9092
|
||||
aivfo.kafka.properties.producer.enable=true
|
||||
+7
-2
@@ -8,11 +8,10 @@ import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("rule")
|
||||
@RequestMapping("rule1")
|
||||
public class RuleContreller {
|
||||
@Autowired
|
||||
RuleGenerator ruleGenerator;
|
||||
@@ -21,8 +20,14 @@ public class RuleContreller {
|
||||
public void add(@RequestBody RuleDTO ruleDTO) {
|
||||
ruleGenerator.generateRules(List.of(ruleDTO));
|
||||
}
|
||||
|
||||
@PostMapping("del")
|
||||
public void del() {
|
||||
ruleGenerator.removeRules();
|
||||
}
|
||||
|
||||
@PostMapping("/test")
|
||||
public String test() {
|
||||
return "123";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,6 +34,11 @@
|
||||
<artifactId>spring-boot-starter-test</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.aivfo</groupId>
|
||||
<artifactId>aivfo-dfs-client-spring-boot-starter</artifactId>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
spring.datasource.url=jdbc:mysql://192.168.123.102:3306/wyl_test?useUnicode=true&serverTimezone=UTC&characterEncoding=utf8&useSSL=false&autoReconnect=true&failOverReadOnly=false&rewriteBatchedStatements=true
|
||||
spring.datasource.url=jdbc:mysql://wylgyx.top:3306/wyl_test?useUnicode=true&serverTimezone=UTC&characterEncoding=utf8&useSSL=false&autoReconnect=true&failOverReadOnly=false&rewriteBatchedStatements=true
|
||||
spring.datasource.username=root
|
||||
spring.datasource.password=Wyl.0629
|
||||
spring.datasource.driverClassName=com.mysql.cj.jdbc.Driver
|
||||
server.port=80
|
||||
aivfo.dsf.fastDFS.enable=true
|
||||
aivfo.dsf.enable=true
|
||||
+2
-4
@@ -4,11 +4,9 @@ import com.wyl.springbootmybatis.BaseTest;
|
||||
import com.wyl.springbootmybatis.mybatis.domain.KeyTest;
|
||||
import com.wyl.springbootmybatis.mybatis.domain.MybatisTest;
|
||||
import com.wyl.springbootmybatis.mybatis.mapper.KeyTestMapper;
|
||||
import com.wyl.springbootmybatis.mybatis.service.KeyTestService;
|
||||
import com.wyl.springbootmybatis.mybatis.service.MybatisTestService;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import sun.security.krb5.internal.ktab.KeyTabEntry;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@@ -30,10 +28,10 @@ class SpringBootMybatisApplicationTests extends BaseTest {
|
||||
|
||||
@Test
|
||||
void saveDataTest() {
|
||||
for (int i = 0; i < 300000; i++){
|
||||
for (int i = 0; i < 300000; i++) {
|
||||
MybatisTest mybatisTest = new MybatisTest();
|
||||
mybatisTest.setCode(UUID.randomUUID()
|
||||
.toString());
|
||||
.toString());
|
||||
mybatisTestService.save(mybatisTest);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user