[+] 结构调整

This commit is contained in:
acgist
2022-11-11 19:28:02 +08:00
parent e668670da8
commit 605e0fbbe7
46 changed files with 841 additions and 215 deletions

View File

@@ -50,6 +50,12 @@
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-ui</artifactId>
</dependency>
<dependency>
<groupId>com.acgist</groupId>
<artifactId>taoyao-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>

View File

@@ -0,0 +1,3 @@
taoyao:
security:
permit: /favicon.ico,/error

View File

@@ -0,0 +1,3 @@
taoyao:
security:
permit: /favicon.ico,/error

View File

@@ -1,11 +1,16 @@
server:
port: 8888
http2:
enabled: true
ssl:
key-alias: taoyao
key-store: classpath:taoyao.jks
key-store-password: 123456
key-password: 123456
tomcat:
thread:
max: 128
min-spare: 4
remoteip:
host-header: X-Forwarded-Host
port-header: X-Forwarded-Port
@@ -16,8 +21,6 @@ spring:
active: dev
application:
name: taoyao-server
jackson:
time-zone: GMT+8
servlet:
multipart:
max-file-size: 256MB
@@ -47,6 +50,9 @@ taoyao:
timeout: 5000
version: 1.0.0
description: WebRTC信令服务
id:
sn: 0
max-index: 999999
webrtc:
type: SFU
stun:
@@ -56,10 +62,12 @@ taoyao:
- stun:stun4.l.google.com:19302
- stun:stun.stunprotocol.org:3478
turn:
record:
storage: /data/record
security:
realm: taoyao
permit: /v3/api-docs/,/swagger-ui/,/error
username:
password:
permit: /v3/api-docs/,/swagger-ui/,/favicon.ico,/error
username: taoyao
password: taoyao
scheduled:
session: 0 * * * * ?

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View File

@@ -0,0 +1,35 @@
package com.acgist.taoyao.boot.service;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import com.acgist.taoyao.main.TaoyaoApplication;
import com.acgist.taoyao.test.annotation.TaoyaoTest;
import com.acgist.taoyao.test.annotation.CostedTest;
import lombok.extern.slf4j.Slf4j;
@Slf4j
@TaoyaoTest(classes = TaoyaoApplication.class)
//@SpringBootTest(classes = TaoyaoApplication.class, webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT)
class IdServiceTest {
@Autowired
private IdService idService;
@Test
// @Timeout(value = 1000, unit = TimeUnit.MILLISECONDS)
// @Rollback()
// @RepeatedTest(10)
void testId() {
final long id = this.idService.id();
log.info("生成ID{}", id);
}
@Test
@CostedTest(count = 100000, thread = 10)
void testIdCosted() {
this.idService.id();
}
}