Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yanxuan-wx-store-sharer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wx
yanxuan-wx-store-sharer
Commits
6a75ab8c
Commit
6a75ab8c
authored
Mar 07, 2025
by
刘运星
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change: 初始化配置
parent
91bbc8d2
Pipeline
#71255
failed
Changes
11
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
159 additions
and
11 deletions
+159
-11
pom.xml
pom.xml
+20
-5
Application.java
...netease/yanxuan/wx/store/sharer/assembly/Application.java
+5
-2
DrmSharerConfig.java
...e/yanxuan/wx/store/sharer/biz/config/DrmSharerConfig.java
+20
-0
pom.xml
yanxuan-wx-store-sharer-dal/pom.xml
+11
-2
GalaxyMetaObjectHandler.java
...n/wx/store/sharer/dal/config/GalaxyMetaObjectHandler.java
+33
-0
MybatisConfig.java
...ase/yanxuan/wx/store/sharer/dal/config/MybatisConfig.java
+31
-0
application-dev.yml
...x-store-sharer-web/src/main/resources/application-dev.yml
+9
-0
application-online.yml
...tore-sharer-web/src/main/resources/application-online.yml
+9
-0
application-regression.yml
...-sharer-web/src/main/resources/application-regression.yml
+9
-0
application-test.yml
...-store-sharer-web/src/main/resources/application-test.yml
+9
-0
application.yml
...an-wx-store-sharer-web/src/main/resources/application.yml
+3
-2
No files found.
pom.xml
View file @
6a75ab8c
...
@@ -30,11 +30,11 @@
...
@@ -30,11 +30,11 @@
<!--yanxuan-->
<!--yanxuan-->
<apolloY.client.version>
1.0.4-RELEASE
</apolloY.client.version>
<apolloY.client.version>
1.0.4-RELEASE
</apolloY.client.version>
<dschedule.version>
1.0.
10
-RELEASE
</dschedule.version>
<dschedule.version>
1.0.
7
-RELEASE
</dschedule.version>
<missa.client.version>
1.3.4-RELEASE
</missa.client.version>
<missa.client.version>
1.3.4-RELEASE
</missa.client.version>
<eudemon.version>
1.0.8-RELEASE
</eudemon.version>
<eudemon.version>
1.0.8-RELEASE
</eudemon.version>
<om.monitor.version>
2.0.5
</om.monitor.version>
<om.monitor.version>
2.0.5
</om.monitor.version>
<helios.core.version>
1.
6.5
-RELEASE
</helios.core.version>
<helios.core.version>
1.
2.3
-RELEASE
</helios.core.version>
<yanxuan-log.version>
1.0.2
</yanxuan-log.version>
<yanxuan-log.version>
1.0.2
</yanxuan-log.version>
<tracer.version>
1.0.8-RELEASE
</tracer.version>
<tracer.version>
1.0.8-RELEASE
</tracer.version>
<shadow.version>
1.0.6-RELEASE
</shadow.version>
<shadow.version>
1.0.6-RELEASE
</shadow.version>
...
@@ -59,6 +59,7 @@
...
@@ -59,6 +59,7 @@
<commonsio.version>
2.4
</commonsio.version>
<commonsio.version>
2.4
</commonsio.version>
<commonscollection.version>
4.1
</commonscollection.version>
<commonscollection.version>
4.1
</commonscollection.version>
<commons.lang.version>
2.4
</commons.lang.version>
<commons.lang.version>
2.4
</commons.lang.version>
<mybatis.plus.boot.starter.version>
3.5.10.1
</mybatis.plus.boot.starter.version>
</properties>
</properties>
...
@@ -206,6 +207,14 @@
...
@@ -206,6 +207,14 @@
<version>
${netease.ddb.version}
</version>
<version>
${netease.ddb.version}
</version>
</dependency>
</dependency>
<dependency>
<groupId>
com.baomidou
</groupId>
<artifactId>
mybatis-plus-bom
</artifactId>
<version>
3.5.9
</version>
<type>
pom
</type>
<scope>
import
</scope>
</dependency>
</dependencies>
</dependencies>
</dependencyManagement>
</dependencyManagement>
...
@@ -238,13 +247,19 @@
...
@@ -238,13 +247,19 @@
<groupId>
com.netease.yanxuan.missa
</groupId>
<groupId>
com.netease.yanxuan.missa
</groupId>
<artifactId>
missa-client
</artifactId>
<artifactId>
missa-client
</artifactId>
</dependency>
</dependency>
<!--其他严选中间件依赖包按需添加-->
<!--
<dependency>
<dependency>
<groupId>
com.netease.mail.yanxuan
</groupId>
<groupId>
com.netease.mail.yanxuan
</groupId>
<artifactId>
dschedule-core
</artifactId>
<artifactId>
dschedule-core
</artifactId>
</dependency>
</dependency>
<dependency>
<groupId>
com.netease.om
</groupId>
<artifactId>
monitor
</artifactId>
</dependency>
<!--其他严选中间件依赖包按需添加-->
<!--
<dependency>
<dependency>
<groupId>com.netease.mail.yanxuan</groupId>
<groupId>com.netease.mail.yanxuan</groupId>
<artifactId>dschedule-config-drm</artifactId>
<artifactId>dschedule-config-drm</artifactId>
...
...
yanxuan-wx-store-sharer-assembly/src/main/java/com/netease/yanxuan/wx/store/sharer/assembly/Application.java
View file @
6a75ab8c
package
com
.
netease
.
yanxuan
.
wx
.
store
.
sharer
.
assembly
;
package
com
.
netease
.
yanxuan
.
wx
.
store
.
sharer
.
assembly
;
import
com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig
;
import
org.mybatis.spring.annotation.MapperScan
;
import
com.netease.yanxuan.missa.client.annotation.EnableMissaClients
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.web.servlet.support.SpringBootServletInitializer
;
import
org.springframework.boot.web.servlet.support.SpringBootServletInitializer
;
import
org.springframework.context.annotation.ComponentScan
;
import
org.springframework.context.annotation.ComponentScan
;
import
com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig
;
import
com.netease.yanxuan.missa.client.annotation.EnableMissaClients
;
/**
/**
* 项目启动类
* 项目启动类
*/
*/
@ComponentScan
(
basePackages
=
"com.netease.yanxuan.wx.store.sharer"
)
@ComponentScan
(
basePackages
=
"com.netease.yanxuan.wx.store.sharer"
)
@EnableApolloConfig
@EnableApolloConfig
@EnableMissaClients
(
basePackages
=
"com.netease.yanxuan.wx.store.sharer"
)
@EnableMissaClients
(
basePackages
=
"com.netease.yanxuan.wx.store.sharer"
)
@MapperScan
(
basePackages
=
"com.netease.yanxuan.wx.store.sharer.dal.mapper"
)
@SpringBootApplication
@SpringBootApplication
public
class
Application
extends
SpringBootServletInitializer
{
public
class
Application
extends
SpringBootServletInitializer
{
...
...
yanxuan-wx-store-sharer-biz/src/main/java/com/netease/yanxuan/wx/store/sharer/biz/config/DrmSharerConfig.java
0 → 100644
View file @
6a75ab8c
/**
* @(#)DrmSharerConfig.java, 2025/3/7.
* <p/>
* Copyright 2025 Netease, Inc. All rights reserved.
* NETEASE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package
com
.
netease
.
yanxuan
.
wx
.
store
.
sharer
.
biz
.
config
;
import
com.ctrip.framework.apollo.spring.annotation.EnableAutoUpdateApolloConfig
;
/**
* 推客配置apo
* @author 刘运星 (liuyunxing01@corp.netease.com)
*/
@EnableAutoUpdateApolloConfig
(
"sharer-config"
)
public
class
DrmSharerConfig
{
}
\ No newline at end of file
yanxuan-wx-store-sharer-dal/pom.xml
View file @
6a75ab8c
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
</dependency>
</dependency>
-->
-->
<!-- store-redis
<dependency>
<dependency>
<groupId>
redis.clients
</groupId>
<groupId>
redis.clients
</groupId>
<artifactId>
jedis
</artifactId>
<artifactId>
jedis
</artifactId>
...
@@ -41,7 +41,15 @@
...
@@ -41,7 +41,15 @@
<groupId>
org.springframework.data
</groupId>
<groupId>
org.springframework.data
</groupId>
<artifactId>
spring-data-redis
</artifactId>
<artifactId>
spring-data-redis
</artifactId>
</dependency>
</dependency>
-->
<dependency>
<groupId>
com.baomidou
</groupId>
<artifactId>
mybatis-plus-boot-starter
</artifactId>
</dependency>
<dependency>
<groupId>
com.baomidou
</groupId>
<artifactId>
mybatis-plus-jsqlparser-4.9
</artifactId>
</dependency>
</dependencies>
</dependencies>
</project>
</project>
\ No newline at end of file
yanxuan-wx-store-sharer-dal/src/main/java/com/netease/yanxuan/wx/store/sharer/dal/config/GalaxyMetaObjectHandler.java
0 → 100644
View file @
6a75ab8c
/**
* @(#)GalaxyMetaObjectHandler.java, 2024/9/2.
* <p/>
* Copyright 2024 Netease, Inc. All rights reserved. NETEASE PROPRIETARY/CONFIDENTIAL. Use is subject to license
* terms.
*/
package
com
.
netease
.
yanxuan
.
wx
.
store
.
sharer
.
dal
.
config
;
import
java.util.Date
;
import
org.apache.ibatis.reflection.MetaObject
;
import
org.springframework.stereotype.Component
;
import
com.baomidou.mybatisplus.core.handlers.MetaObjectHandler
;
/**
* 配置自动填充插件
* @author 刘运星 (liuyunxing01@corp.netease.com)
*/
@Component
public
class
GalaxyMetaObjectHandler
implements
MetaObjectHandler
{
@Override
public
void
insertFill
(
MetaObject
metaObject
)
{
this
.
strictInsertFill
(
metaObject
,
"createTime"
,
Date
.
class
,
new
Date
());
this
.
strictUpdateFill
(
metaObject
,
"updateTime"
,
Date
.
class
,
new
Date
());
}
@Override
public
void
updateFill
(
MetaObject
metaObject
)
{
this
.
strictUpdateFill
(
metaObject
,
"updateTime"
,
Date
.
class
,
new
Date
());
}
}
yanxuan-wx-store-sharer-dal/src/main/java/com/netease/yanxuan/wx/store/sharer/dal/config/MybatisConfig.java
0 → 100644
View file @
6a75ab8c
/**
* @(#)MybatisConfig.java, 2024/9/2.
* <p/>
* Copyright 2024 Netease, Inc. All rights reserved. NETEASE PROPRIETARY/CONFIDENTIAL. Use is subject to license
* terms.
*/
package
com
.
netease
.
yanxuan
.
wx
.
store
.
sharer
.
dal
.
config
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
com.baomidou.mybatisplus.annotation.DbType
;
import
com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor
;
import
com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor
;
/**
* 配置分页插件
* @author 刘运星 (liuyunxing01@corp.netease.com)
*/
@Configuration
public
class
MybatisConfig
{
@Bean
public
MybatisPlusInterceptor
mybatisPlusInterceptor
()
{
MybatisPlusInterceptor
interceptor
=
new
MybatisPlusInterceptor
();
interceptor
.
addInnerInterceptor
(
new
PaginationInnerInterceptor
(
DbType
.
MYSQL
));
return
interceptor
;
}
}
yanxuan-wx-store-sharer-web/src/main/resources/application-dev.yml
0 → 100644
View file @
6a75ab8c
log
:
level
:
debug
spring
:
datasource
:
driver-class-name
:
com.mysql.cj.jdbc.Driver
url
:
jdbc:mysql://127.0.0.1:3306/work?useTimezone=true&serverTimezone=GMT%2B8
username
:
password
:
yanxuan-wx-store-sharer-web/src/main/resources/application-online.yml
0 → 100644
View file @
6a75ab8c
log
:
level
:
info
spring
:
datasource
:
driver-class-name
:
com.mysql.jdbc.Driver
url
:
username
:
password
:
yanxuan-wx-store-sharer-web/src/main/resources/application-regression.yml
0 → 100644
View file @
6a75ab8c
log
:
level
:
debug
spring
:
datasource
:
driver-class-name
:
com.mysql.jdbc.Driver
url
:
username
:
password
:
yanxuan-wx-store-sharer-web/src/main/resources/application-test.yml
0 → 100644
View file @
6a75ab8c
log
:
level
:
debug
spring
:
datasource
:
driver-class-name
:
com.mysql.jdbc.Driver
url
:
username
:
password
:
yanxuan-wx-store-sharer-web/src/main/resources/application.yml
View file @
6a75ab8c
spring
:
spring
:
application
:
application
:
name
:
yanxuan-wx-store-sharer
name
:
tob-galaxy-material
profiles
:
profiles
:
active
:
dev
active
:
dev
log
:
log
:
level
:
info
level
:
info
path
:
/home/logs/
yanxuan-wx-store-sharer
path
:
/home/logs/
tob-galaxy-material
maxHistory
:
15
maxHistory
:
15
maxSize
:
200MB
maxSize
:
200MB
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment