Skip to content

Commit

Permalink
Merge pull request #115 from SonicCloudOrg/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
ZhouYixun authored Jan 9, 2022
2 parents 9c6b020 + fe4d271 commit da37646
Show file tree
Hide file tree
Showing 280 changed files with 11,098 additions and 8,380 deletions.
22 changes: 17 additions & 5 deletions config/jdbc-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,20 @@ spring:
url: jdbc:mysql://localhost:3306/sonic?useUnicode=true&characterEncoding=utf8&serverTimezone=UTC&autoReconnect=true&serverTimezone=GMT%2b8
username: root
password: Sonic!@#123
jpa:
open-in-view: true
hibernate:
ddl-auto: update
show-sql: true
# 会用到广播的事件
initialization-mode: always
schema:
- classpath:data.sql
# mybatis-plus配置
mybatis-plus:
mapper-locations: classpath:mapping/*.xml, classpath*:com/gitee/sunchenbin/mybatis/actable/mapping/*/*.xml
global-config:
# 是否显示mybatis-plus图标
banner: false
configuration:
# 关闭二级缓存
cache-enabled: false
# 关闭一级缓存
localCacheScope: STATEMENT
# sql日志
# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
7 changes: 7 additions & 0 deletions config/sonic-server-folder-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ server:
port: 0

spring:
tomcat:
max-http-post-size: 100M
http:
multipart:
maxFileSize: 3000M
maxRequestSize: 3000M
maxPostSize: 3000M
servlet:
multipart:
maxFileSize: -1
Expand Down
2 changes: 1 addition & 1 deletion config/sonic-server-gateway-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ server:
port: 8094

filter:
white-list: /users/login,/users/register,/swagger-resources,/v2/api-docs,/folder/upload,/folder/recordFiles,/keepFiles/,/imageFiles/,/recordFiles/,/logFiles/,/packageFiles/
white-list: /users/login,/users/register,/swagger-resources,/v2/api-docs,/folder/upload,/folder/upload/recordFiles,/folder/upload/cv,/keepFiles/,/imageFiles/,/recordFiles/,/logFiles/,/packageFiles/

spring:
cloud:
Expand Down
4 changes: 0 additions & 4 deletions config/sonic-server-task-dev.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
server:
port: 0

spring:
datasource:
initialization-mode: always
quartz:
properties:
org:
Expand Down
14 changes: 7 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3'
services:
sonic-server-eureka:
image: "sonicorg/sonic-server-eureka:v1.2.0-release"
image: "sonicorg/sonic-server-eureka:v1.3.0-beta2"
hostname: sonic-server-eureka
environment:
- EUREKA_HOST=sonic-server-eureka
Expand All @@ -12,7 +12,7 @@ services:
ports:
- "9090:9090"
sonic-server-bus:
image: "sonicorg/sonic-server-bus:v1.2.0-release"
image: "sonicorg/sonic-server-bus:v1.3.0-beta2"
environment:
- PROFILE=prod
- EUREKA_URL=http://sonic:sonic@sonic-server-eureka:9090/eureka/
Expand All @@ -24,7 +24,7 @@ services:
depends_on:
- sonic-server-eureka
sonic-server-gateway:
image: "sonicorg/sonic-server-gateway:v1.2.0-release"
image: "sonicorg/sonic-server-gateway:v1.3.0-beta2"
environment:
- PROFILE=prod
- EUREKA_URL=http://sonic:sonic@sonic-server-eureka:9090/eureka/
Expand All @@ -38,7 +38,7 @@ services:
ports:
- "8094:8094"
sonic-server-controller:
image: "sonicorg/sonic-server-controller:v1.3.0-beta1"
image: "sonicorg/sonic-server-controller:v1.3.0-beta2"
environment:
- PROFILE=prod
- EUREKA_URL=http://sonic:sonic@sonic-server-eureka:9090/eureka/
Expand All @@ -51,7 +51,7 @@ services:
- sonic-server-eureka
- sonic-server-gateway
sonic-server-folder:
image: "sonicorg/sonic-server-folder:v1.2.0-release"
image: "sonicorg/sonic-server-folder:v1.3.0-beta2"
environment:
- PROFILE=prod
- EUREKA_URL=http://sonic:sonic@sonic-server-eureka:9090/eureka/
Expand All @@ -68,7 +68,7 @@ services:
- sonic-server-eureka
- sonic-server-gateway
sonic-server-task:
image: "sonicorg/sonic-server-task:v1.2.0-release"
image: "sonicorg/sonic-server-task:v1.3.0-beta2"
environment:
- PROFILE=prod
- EUREKA_URL=http://sonic:sonic@sonic-server-eureka:9090/eureka/
Expand All @@ -81,7 +81,7 @@ services:
- sonic-server-eureka
- sonic-server-gateway
sonic-server-transport:
image: "sonicorg/sonic-server-transport:v1.3.0-beta1"
image: "sonicorg/sonic-server-transport:v1.3.0-beta2"
environment:
- PROFILE=prod
- EUREKA_URL=http://sonic:sonic@sonic-server-eureka:9090/eureka/
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.sonic</groupId>
<groupId>org.cloud.sonic</groupId>
<artifactId>sonic-server</artifactId>
<version>1.0.0</version>
<packaging>pom</packaging>
Expand Down
42 changes: 21 additions & 21 deletions sonic-server-bus/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>sonic-server</artifactId>
<groupId>com.sonic</groupId>
<groupId>org.cloud.sonic</groupId>
<version>1.0.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>sonic-server-bus</artifactId>
<version>v1.2.0-release</version>
<version>v1.3.0-beta2</version>
<packaging>jar</packaging>

<dependencies>
Expand Down Expand Up @@ -42,23 +42,23 @@
</dependency>
</dependencies>

<build>
<plugins>
<!-- 只作为公共依赖,不需要打包 -->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>docker-maven-plugin</artifactId>
<configuration>
<skipDocker>true</skipDocker>
</configuration>
</plugin>
</plugins>
</build>
<!-- <build>-->
<!-- <plugins>-->
<!-- &lt;!&ndash; 只作为公共依赖,不需要打包 &ndash;&gt;-->
<!-- <plugin>-->
<!-- <groupId>org.springframework.boot</groupId>-->
<!-- <artifactId>spring-boot-maven-plugin</artifactId>-->
<!-- <configuration>-->
<!-- <skip>true</skip>-->
<!-- </configuration>-->
<!-- </plugin>-->
<!-- <plugin>-->
<!-- <groupId>com.spotify</groupId>-->
<!-- <artifactId>docker-maven-plugin</artifactId>-->
<!-- <configuration>-->
<!-- <skipDocker>true</skipDocker>-->
<!-- </configuration>-->
<!-- </plugin>-->
<!-- </plugins>-->
<!-- </build>-->
</project>
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package com.sonic.bus;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.config.server.EnableConfigServer;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

@SpringBootApplication
@EnableEurekaClient
@EnableConfigServer
public class BusApplication {
public static void main(String[] args) {
SpringApplication.run(BusApplication.class, args);
}
package org.cloud.sonic.bus;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.config.server.EnableConfigServer;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

@SpringBootApplication
@EnableEurekaClient
@EnableConfigServer
public class BusApplication {
public static void main(String[] args) {
SpringApplication.run(BusApplication.class, args);
}
}
8 changes: 7 additions & 1 deletion sonic-server-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>sonic-server</artifactId>
<groupId>com.sonic</groupId>
<groupId>org.cloud.sonic</groupId>
<version>1.0.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down Expand Up @@ -47,6 +47,12 @@
<artifactId>java-jwt</artifactId>
<version>3.10.3</version>
</dependency>
<!-- lombok -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.20</version>
</dependency>
</dependencies>

<!-- 打包构建配置 -->
Expand Down

This file was deleted.

Loading

0 comments on commit da37646

Please sign in to comment.