提交 437f6915 编写于 作者: ibizdev's avatar ibizdev

MoneyQ 发布系统代码 [后台服务,演示应用]

上级 3d60668c
...@@ -21,6 +21,9 @@ ...@@ -21,6 +21,9 @@
</dependency> </dependency>
</dependencies> </dependencies>
<properties>
<docker.image.prefix>registry.cn-shanghai.aliyuncs.com/ibizsys</docker.image.prefix>
</properties>
<profiles> <profiles>
...@@ -95,6 +98,23 @@ ...@@ -95,6 +98,23 @@
</executions> </executions>
</plugin> </plugin>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.4.13</version>
<configuration>
<serverId>ibiz-dev</serverId>
<imageName>${docker.image.prefix}/${project.artifactId}:latest</imageName>
<dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
<resources>
<resource>
<targetPath>/</targetPath>
<directory>../../</directory>
<include>${project.artifactId}.jar</include>
</resource>
</resources>
</configuration>
</plugin>
</plugins> </plugins>
</build> </build>
</profile> </profile>
......
server: server:
port: 8080 port: 51001
#Log配置 #Log配置
logging: logging:
level: level:
......
version: "3.2"
services:
DemoSys-mysql:
image: mysql:5.7.20
volumes:
- $PWD/../../../../volumes/mysql/:/var/lib/mysql/
networks:
- agent_network
environment:
- TZ=Asia/Shanghai
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=a_LAB01_df847bdfd
ports:
- 3306:3306
command: mysqld --lower_case_table_names=1 --skip-ssl --character_set_server=utf8 --explicit_defaults_for_timestamp
networks:
agent_network:
attachable: true
...@@ -8,10 +8,10 @@ import java.util.List; ...@@ -8,10 +8,10 @@ import java.util.List;
public interface IBIZOrderImport { public interface IBIZOrderImport {
@Mappings({ @Mappings({
@Mapping(target = "ibizorderid",source = "ibizorderid"), @Mapping(target = "ibizorderid",source = "ibizorderid"),
@Mapping(target = "ibizordername",source = "ibizordername"),
@Mapping(target = "ordertype",source = "ordertype"), @Mapping(target = "ordertype",source = "ordertype"),
@Mapping(target = "ordertime",source = "ordertime"), @Mapping(target = "ordertime",source = "ordertime"),
@Mapping(target = "orderuid",source = "orderuid"), @Mapping(target = "orderuid",source = "orderuid"),
@Mapping(target = "ibizordername",source = "ibizordername"),
}) })
@BeanMapping(ignoreByDefault = true) @BeanMapping(ignoreByDefault = true)
IBIZOrder toDomain(IBIZOrder entity); IBIZOrder toDomain(IBIZOrder entity);
......
create schema if not exists a_LAB01_df847bdfd;
set schema a_LAB01_df847bdfd;
...@@ -21,6 +21,9 @@ ...@@ -21,6 +21,9 @@
</dependency> </dependency>
</dependencies> </dependencies>
<properties>
<docker.image.prefix>registry.cn-shanghai.aliyuncs.com/ibizsys</docker.image.prefix>
</properties>
<profiles> <profiles>
<profile> <profile>
...@@ -54,6 +57,23 @@ ...@@ -54,6 +57,23 @@
</executions> </executions>
</plugin> </plugin>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.4.13</version>
<configuration>
<serverId>ibiz-dev</serverId>
<imageName>${docker.image.prefix}/${project.artifactId}:latest</imageName>
<dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
<resources>
<resource>
<targetPath>/</targetPath>
<directory>../../</directory>
<include>${project.artifactId}.jar</include>
</resource>
</resources>
</configuration>
</plugin>
</plugins> </plugins>
</build> </build>
</profile> </profile>
......
server: server:
port: 8081 port: 51000
#Log配置 #Log配置
logging: logging:
level: level:
......
...@@ -3,7 +3,7 @@ spring: ...@@ -3,7 +3,7 @@ spring:
cloud: cloud:
nacos: nacos:
discovery: discovery:
server-addr: 127.0.0.1:8848 server-addr: 172.16.240.110:8848
enabled: true enabled: true
eureka: eureka:
......
...@@ -6,7 +6,7 @@ spring: ...@@ -6,7 +6,7 @@ spring:
caffeine: caffeine:
spec: initialCapacity=5,maximumSize=500,expireAfterWrite=3600s spec: initialCapacity=5,maximumSize=500,expireAfterWrite=3600s
redis: redis:
host: 127.0.0.1 host: 172.16.240.110
port: 6379 port: 6379
password: password:
database: 0 database: 0
...@@ -21,9 +21,9 @@ spring: ...@@ -21,9 +21,9 @@ spring:
max-file-size: 100MB max-file-size: 100MB
max-request-size: 100MB max-request-size: 100MB
datasource: datasource:
username: root username: a_LAB01_df847bdfd
password: 'root' password: '3d6@460A'
url: jdbc:mysql://127.0.0.1:3306/DemoSys?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&allowMultiQueries=true url: jdbc:mysql://172.16.186.185:3306/a_LAB01_df847bdfd?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&allowMultiQueries=true
driver-class-name: com.mysql.jdbc.Driver driver-class-name: com.mysql.jdbc.Driver
filters: stat,wall,log4j2 filters: stat,wall,log4j2
#配置初始化大小/最小/最大 #配置初始化大小/最小/最大
...@@ -44,7 +44,7 @@ spring: ...@@ -44,7 +44,7 @@ spring:
pool-prepared-statements: false pool-prepared-statements: false
max-pool-prepared-statement-per-connection-size: 20 max-pool-prepared-statement-per-connection-size: 20
isSyncDBSchema: false isSyncDBSchema: false
defaultSchema: DemoSys defaultSchema: a_LAB01_df847bdfd
conf: classpath:liquibase/master.xml conf: classpath:liquibase/master.xml
#Mybatis-plus配置 #Mybatis-plus配置
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册