Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
weixin-project
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hqzhdj
weixin-project
Commits
68b187d1
Commit
68b187d1
authored
Oct 18, 2024
by
阳浪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配置信息
parent
7867de1c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
6 deletions
+16
-6
cloud-wechat-service/pom.xml
+10
-1
cloud-wechat-service/src/main/java/com/yizhi/application/MybatisCodeGenerator.java
+1
-1
cloud-wechat-service/src/main/java/com/yizhi/application/WechatApplication.java
+2
-1
cloud-wechat-service/src/main/resources/bootstrap.properties
+3
-3
No files found.
cloud-wechat-service/pom.xml
View file @
68b187d1
...
@@ -60,6 +60,11 @@
...
@@ -60,6 +60,11 @@
<artifactId>
dom4j
</artifactId>
<artifactId>
dom4j
</artifactId>
<version>
1.6.1
</version>
<version>
1.6.1
</version>
</dependency>
</dependency>
<dependency>
<groupId>
mysql
</groupId>
<artifactId>
mysql-connector-java
</artifactId>
<version>
5.1.35
</version>
</dependency>
</dependencies>
</dependencies>
<build>
<build>
...
@@ -73,5 +78,8 @@
...
@@ -73,5 +78,8 @@
</plugin>
</plugin>
</plugins>
</plugins>
</build>
</build>
<properties>
<!-- 跳过测试 -->
<skipTests>
true
</skipTests>
</properties>
</project>
</project>
\ No newline at end of file
cloud-wechat-service/src/main/java/com/yizhi/application/MybatisCodeGenerator.java
View file @
68b187d1
...
@@ -58,7 +58,7 @@ public class MybatisCodeGenerator {
...
@@ -58,7 +58,7 @@ public class MybatisCodeGenerator {
return
super
.
processTypeConvert
(
fieldType
);
return
super
.
processTypeConvert
(
fieldType
);
}
}
});
});
dsc
.
setDriverName
(
"com.mysql.jdbc.Driver"
);
dsc
.
setDriverName
(
"com.mysql.
cj.
jdbc.Driver"
);
dsc
.
setUsername
(
"root"
);
dsc
.
setUsername
(
"root"
);
dsc
.
setPassword
(
"fulan123"
);
dsc
.
setPassword
(
"fulan123"
);
dsc
.
setUrl
(
"jdbc:mysql://180.169.149.5:11306/cloud_system?characterEncoding=utf8"
);
dsc
.
setUrl
(
"jdbc:mysql://180.169.149.5:11306/cloud_system?characterEncoding=utf8"
);
...
...
cloud-wechat-service/src/main/java/com/yizhi/application/WechatApplication.java
View file @
68b187d1
...
@@ -2,6 +2,7 @@ package com.yizhi.application;
...
@@ -2,6 +2,7 @@ package com.yizhi.application;
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.autoconfigure.amqp.RabbitAutoConfiguration
;
import
org.springframework.cloud.openfeign.EnableFeignClients
;
import
org.springframework.cloud.openfeign.EnableFeignClients
;
import
org.springframework.context.annotation.ComponentScan
;
import
org.springframework.context.annotation.ComponentScan
;
import
org.springframework.context.annotation.PropertySource
;
import
org.springframework.context.annotation.PropertySource
;
...
@@ -9,7 +10,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
...
@@ -9,7 +10,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
@PropertySource
(
value
=
{
"classpath:wechat-url.properties"
},
ignoreResourceNotFound
=
true
)
@PropertySource
(
value
=
{
"classpath:wechat-url.properties"
},
ignoreResourceNotFound
=
true
)
@EnableTransactionManagement
@EnableTransactionManagement
@SpringBootApplication
@SpringBootApplication
(
exclude
=
{
RabbitAutoConfiguration
.
class
})
@EnableFeignClients
(
basePackages
=
{
"com.yizhi"
})
@EnableFeignClients
(
basePackages
=
{
"com.yizhi"
})
@ComponentScan
(
basePackages
=
{
"com.yizhi"
})
@ComponentScan
(
basePackages
=
{
"com.yizhi"
})
public
class
WechatApplication
{
public
class
WechatApplication
{
...
...
cloud-wechat-service/src/main/resources/bootstrap.properties
View file @
68b187d1
server.port
=
35045
server.port
=
35045
spring.application.name
=
wechat
spring.application.name
=
wechat
ACTIVE
=
${spring.profiles.active}
ACTIVE
=
${spring.profiles.active}
spring.profiles.active
=
sit
spring.profiles.active
=
prod
# nacos
# nacos
spring.cloud.nacos.config.shared-dataids
=
common-${spring.profiles.active}.properties
spring.cloud.nacos.config.shared-dataids
=
common-${spring.profiles.active}.properties
spring.cloud.nacos.config.namespace
=
${spring.profiles.active}
spring.cloud.nacos.config.namespace
=
${spring.profiles.active}
spring.cloud.nacos.config.prefix
=
${spring.application.name}
spring.cloud.nacos.config.prefix
=
${spring.application.name}
spring.cloud.nacos.config.file-extension
=
properties
spring.cloud.nacos.config.file-extension
=
properties
#spring.cloud.nacos.config.server-addr=192.168.1.22:3333
#spring.cloud.nacos.config.server-addr=192.168.1.22:3333
spring.cloud.nacos.config.server-addr
=
192.168.1.13:3333
spring.cloud.nacos.config.server-addr
=
10.23.1.183:8848
\ No newline at end of file
\ 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