Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cloud-chat-practice
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
cloud-chat-practice
Commits
51e82c05
Commit
51e82c05
authored
Oct 18, 2024
by
阳浪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配置信息
parent
5e4657ca
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
7 deletions
+10
-7
chat-practice-service/pom.xml
+3
-0
chat-practice-service/src/main/java/com/yizhi/practice/application/Application.java
+2
-1
chat-practice-service/src/main/java/com/yizhi/practice/application/xservice/impl/PracticeStuXServiceImpl.kt
+3
-4
chat-practice-service/src/main/resources/bootstrap.properties
+1
-1
chat-practice-service/src/test/java/MybatisCodeGenerator.java
+1
-1
No files found.
chat-practice-service/pom.xml
View file @
51e82c05
...
...
@@ -13,6 +13,8 @@
<artifactId>
chat-practice-service
</artifactId>
<properties>
<kotlin.version>
1.4.10
</kotlin.version>
<!-- 跳过测试 -->
<skipTests>
true
</skipTests>
</properties>
<dependencies>
...
...
@@ -142,6 +144,7 @@
</dependencies>
<!-- <build>-->
<!-- <plugins>-->
<!-- <plugin>-->
...
...
chat-practice-service/src/main/java/com/yizhi/practice/application/Application.java
View file @
51e82c05
...
...
@@ -2,6 +2,7 @@ package com.yizhi.practice.application;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.autoconfigure.amqp.RabbitAutoConfiguration
;
import
org.springframework.cache.annotation.EnableCaching
;
import
org.springframework.cloud.client.discovery.EnableDiscoveryClient
;
import
org.springframework.cloud.openfeign.EnableFeignClients
;
...
...
@@ -12,7 +13,7 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
* @Date 2020/10/21 9:58 上午
* @Author lvjianhui
**/
@SpringBootApplication
@SpringBootApplication
(
exclude
=
{
RabbitAutoConfiguration
.
class
})
@EnableDiscoveryClient
@EnableSwagger2
@EnableCaching
...
...
chat-practice-service/src/main/java/com/yizhi/practice/application/xservice/impl/PracticeStuXServiceImpl.kt
View file @
51e82c05
...
...
@@ -36,7 +36,6 @@ import com.yizhi.wechat.application.feign.AccessTokenClient
import
com.yizhi.wechat.application.feign.WeChatTokenClient
import
org.apache.commons.io.FileUtils
import
org.apache.commons.lang.StringUtils
import
org.springframework.amqp.core.AmqpTemplate
import
org.springframework.beans.factory.annotation.Autowired
import
org.springframework.beans.factory.annotation.Value
import
org.springframework.stereotype.Service
...
...
@@ -109,8 +108,8 @@ class PracticeStuXServiceImpl : PracticeStuChatXService {
@Autowired
lateinit
var
practiceChatRoundLogMapper
:
PracticeChatRoundLogMapper
@Autowired
lateinit
var
amqpTemplate
:
AmqpTemplate
//
@Autowired
//
lateinit var amqpTemplate: AmqpTemplate
@Autowired
lateinit
var
pointRedisFeignClients
:
PointRedisFeignClients
...
...
@@ -278,7 +277,7 @@ class PracticeStuXServiceImpl : PracticeStuChatXService {
pointParamVO
.
orgId
=
pointLog
.
orgId
//组织ID
pointParamVO
.
score
=
pointLog
.
point
val
sitePointId
=
pointRedisFeignClients
.
addPointRedis
(
pointParamVO
)
//调用积分接口添加积分
amqpTemplate
.
convertAndSend
(
pointParamVO
.
eventName
,
sitePointId
)
//发送积分获取消息
//
amqpTemplate.convertAndSend(pointParamVO.eventName, sitePointId) //发送积分获取消息
}
// 第二步 查看是否保存上句机器人话术log,如果没有 则保存,否则nothing
...
...
chat-practice-service/src/main/resources/bootstrap.properties
View file @
51e82c05
...
...
@@ -60,7 +60,7 @@
##mybatis-plus.globalConfig.metaObjectHandler=com.fulan.application.orm.audit.AuditMetaObjectHandler
#mybatis-plus.mapper-locations=classpath:mapper/*.xml,classpath:com/fulan/drools/mapper/*.xml,classpath:com/fulan/application/mapper/*.xml,classpath:/xml/*.xml,classpath:mybatis/*.xml
## jdbc #######################################
#spring.datasource.driver-class-name=com.mysql.jdbc.Driver
#spring.datasource.driver-class-name=com.mysql.
cj.
jdbc.Driver
## nacos
##spring.cloud.nacos.discovery.server-addr=192.168.1.22:3333,192.168.1.22:4444,192.168.1.22:5555
##spring.cloud.nacos.discovery.namespace=dev
...
...
chat-practice-service/src/test/java/MybatisCodeGenerator.java
View file @
51e82c05
...
...
@@ -54,7 +54,7 @@ public class MybatisCodeGenerator {
return
super
.
processTypeConvert
(
fieldType
);
}
});
dsc
.
setDriverName
(
"com.mysql.jdbc.Driver"
);
dsc
.
setDriverName
(
"com.mysql.
cj.
jdbc.Driver"
);
dsc
.
setUsername
(
"devDB"
);
dsc
.
setPassword
(
"devDB@123"
);
dsc
.
setUrl
(
"jdbc:mysql://192.168.1.31:3306/cloud_chat_practice?useUnicode=true&characterEncoding=UTF-8&"
);
...
...
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