Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
E
EncryptedFileSystem
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhangshuang
EncryptedFileSystem
Commits
00b27522
提交
00b27522
authored
3月 26, 2020
作者:
xc
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
分页
上级
72939942
隐藏空白字符变更
内嵌
并排
正在显示
12 个修改的文件
包含
122 行增加
和
33 行删除
+122
-33
AttentionDao.java
efs-bus/src/main/java/com/zjty/efs/bus/Dao/AttentionDao.java
+3
-0
NoticeDao.java
efs-bus/src/main/java/com/zjty/efs/bus/Dao/NoticeDao.java
+1
-1
AttentionController.java
...java/com/zjty/efs/bus/controller/AttentionController.java
+3
-2
NoticeController.java
...in/java/com/zjty/efs/bus/controller/NoticeController.java
+4
-9
Attention.java
efs-bus/src/main/java/com/zjty/efs/bus/entity/Attention.java
+1
-1
Notice.java
efs-bus/src/main/java/com/zjty/efs/bus/entity/Notice.java
+4
-4
Paging.java
efs-bus/src/main/java/com/zjty/efs/bus/entity/Paging.java
+25
-0
AttentionService.java
.../main/java/com/zjty/efs/bus/service/AttentionService.java
+2
-1
NoticeService.java
...src/main/java/com/zjty/efs/bus/service/NoticeService.java
+12
-3
AttentionServiceImpl.java
...a/com/zjty/efs/bus/service/impl/AttentionServiceImpl.java
+29
-2
NoticeServiceImpl.java
...java/com/zjty/efs/bus/service/impl/NoticeServiceImpl.java
+37
-9
application.properties
efs-bus/src/main/resources/application.properties
+1
-1
没有找到文件。
efs-bus/src/main/java/com/zjty/efs/bus/Dao/AttentionDao.java
浏览文件 @
00b27522
package
com
.
zjty
.
efs
.
bus
.
Dao
;
package
com
.
zjty
.
efs
.
bus
.
Dao
;
import
com.zjty.efs.bus.entity.Attention
;
import
com.zjty.efs.bus.entity.Attention
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.stereotype.Repository
;
import
org.springframework.stereotype.Repository
;
@Repository
@Repository
public
interface
AttentionDao
extends
JpaRepository
<
Attention
,
Integer
>
{
public
interface
AttentionDao
extends
JpaRepository
<
Attention
,
Integer
>
{
Page
<
Attention
>
findOutByUserId
(
int
sender
,
Pageable
pageable
);
}
}
efs-bus/src/main/java/com/zjty/efs/bus/Dao/NoticeDao.java
浏览文件 @
00b27522
...
@@ -13,5 +13,5 @@ import java.util.List;
...
@@ -13,5 +13,5 @@ import java.util.List;
public
interface
NoticeDao
extends
JpaRepository
<
Notice
,
Integer
>
{
public
interface
NoticeDao
extends
JpaRepository
<
Notice
,
Integer
>
{
Notice
findById
(
int
id
);
Notice
findById
(
int
id
);
Page
<
Notice
>
findOutBySenderAndType
(
int
sender
,
int
type
,
Pageable
pageable
);
Page
<
Notice
>
findOutBySenderAndType
(
int
sender
,
int
type
,
Pageable
pageable
);
List
<
Notice
>
findOutBySenderAndStatusAndType
(
int
sender
,
int
status
,
int
type
);
}
}
efs-bus/src/main/java/com/zjty/efs/bus/controller/AttentionController.java
浏览文件 @
00b27522
package
com
.
zjty
.
efs
.
bus
.
controller
;
package
com
.
zjty
.
efs
.
bus
.
controller
;
import
com.zjty.efs.bus.entity.Attention
;
import
com.zjty.efs.bus.entity.Attention
;
import
com.zjty.efs.bus.entity.Paging
;
import
com.zjty.efs.misc.config.AutoDocument
;
import
com.zjty.efs.misc.config.AutoDocument
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiImplicitParam
;
...
@@ -28,8 +29,8 @@ public class AttentionController {
...
@@ -28,8 +29,8 @@ public class AttentionController {
@ApiImplicitParam
(
name
=
"pageSize"
,
value
=
"条数"
,
dataType
=
"int"
,
paramType
=
"query"
,
required
=
true
)
@ApiImplicitParam
(
name
=
"pageSize"
,
value
=
"条数"
,
dataType
=
"int"
,
paramType
=
"query"
,
required
=
true
)
})
})
@PostMapping
(
"/getAttention"
)
@PostMapping
(
"/getAttention"
)
public
ResponseEntity
<
Pag
e
<
Attention
>>
test
(
@RequestParam
int
userId
,
int
pageNum
,
int
pageSize
){
public
ResponseEntity
<
Pag
ing
<
Attention
>>
test
(
@RequestParam
int
userId
,
int
pageNum
,
int
pageSize
){
return
ResponseEntity
.
ok
(
new
Pag
eImpl
<>(
new
ArrayList
<>()
));
return
ResponseEntity
.
ok
(
new
Pag
ing
<>(
));
}
}
}
}
efs-bus/src/main/java/com/zjty/efs/bus/controller/NoticeController.java
浏览文件 @
00b27522
package
com
.
zjty
.
efs
.
bus
.
controller
;
package
com
.
zjty
.
efs
.
bus
.
controller
;
import
com.alibaba.fastjson.JSONObject
;
import
com.zjty.efs.bus.entity.Notice
;
import
com.zjty.efs.bus.entity.Notice
;
import
com.zjty.efs.bus.entity.Paging
;
import
com.zjty.efs.bus.service.NoticeService
;
import
com.zjty.efs.bus.service.NoticeService
;
import
com.zjty.efs.misc.config.AutoDocument
;
import
com.zjty.efs.misc.config.AutoDocument
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
...
@@ -9,15 +9,10 @@ import io.swagger.annotations.ApiImplicitParam;
...
@@ -9,15 +9,10 @@ import io.swagger.annotations.ApiImplicitParam;
import
io.swagger.annotations.ApiImplicitParams
;
import
io.swagger.annotations.ApiImplicitParams
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.PageImpl
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.domain.Sort
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
javax.validation.Valid
;
import
javax.validation.Valid
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
@AutoDocument
@AutoDocument
...
@@ -68,13 +63,13 @@ public class NoticeController {
...
@@ -68,13 +63,13 @@ public class NoticeController {
@ApiImplicitParam
(
name
=
"type"
,
value
=
"通知类型"
,
paramType
=
"query"
,
required
=
true
,
example
=
"0"
,
dataType
=
"int"
),
@ApiImplicitParam
(
name
=
"type"
,
value
=
"通知类型"
,
paramType
=
"query"
,
required
=
true
,
example
=
"0"
,
dataType
=
"int"
),
@ApiImplicitParam
(
name
=
"pageNum"
,
value
=
"页码"
,
paramType
=
"query"
,
required
=
true
,
dataType
=
"int"
),
@ApiImplicitParam
(
name
=
"pageNum"
,
value
=
"页码"
,
paramType
=
"query"
,
required
=
true
,
dataType
=
"int"
),
@ApiImplicitParam
(
name
=
"pageSize"
,
value
=
"条数"
,
paramType
=
"query"
,
required
=
true
,
dataType
=
"int"
)})
@ApiImplicitParam
(
name
=
"pageSize"
,
value
=
"条数"
,
paramType
=
"query"
,
required
=
true
,
dataType
=
"int"
)})
public
ResponseEntity
<
Pag
e
<
Notice
>>
getNoticeList
(
@RequestParam
int
user
,
int
type
,
int
pageNum
,
int
pageSize
){
public
ResponseEntity
<
Pag
ing
<
Notice
>>
getNoticeList
(
@RequestParam
int
user
,
int
type
,
int
pageNum
,
int
pageSize
){
Pag
e
<
Notice
>
data
=
noticeService
.
getReceiveList
(
user
,
type
,
pageNum
,
pageSize
);
Pag
ing
<
Notice
>
data
=
noticeService
.
getReceiveList
(
user
,
type
,
pageNum
,
pageSize
);
return
ResponseEntity
.
ok
(
data
);
return
ResponseEntity
.
ok
(
data
);
}
}
@PutMapping
(
"/updateStatus"
)
@PutMapping
(
"/updateStatus"
)
@ApiOperation
(
value
=
"修改通知为已读"
)
@ApiOperation
(
value
=
"修改通知为已读"
,
notes
=
"status 未查看 0,已查看 1"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"notices"
,
value
=
"通知列表"
,
paramType
=
"body"
,
required
=
true
,
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"notices"
,
value
=
"通知列表"
,
paramType
=
"body"
,
required
=
true
,
allowMultiple
=
true
,
dataType
=
"Notice"
)})
allowMultiple
=
true
,
dataType
=
"Notice"
)})
public
ResponseEntity
updateStatus
(
@RequestBody
List
<
Notice
>
notices
){
public
ResponseEntity
updateStatus
(
@RequestBody
List
<
Notice
>
notices
){
...
...
efs-bus/src/main/java/com/zjty/efs/bus/entity/Attention.java
浏览文件 @
00b27522
...
@@ -23,7 +23,7 @@ public class Attention {
...
@@ -23,7 +23,7 @@ public class Attention {
*/
*/
@ApiModelProperty
(
value
=
"id"
,
example
=
"1"
)
@ApiModelProperty
(
value
=
"id"
,
example
=
"1"
)
@Id
@Id
@GeneratedValue
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
@Column
(
name
=
"id"
)
@Column
(
name
=
"id"
)
private
int
id
;
private
int
id
;
...
...
efs-bus/src/main/java/com/zjty/efs/bus/entity/Notice.java
浏览文件 @
00b27522
...
@@ -29,7 +29,7 @@ public class Notice {
...
@@ -29,7 +29,7 @@ public class Notice {
*/
*/
@ApiModelProperty
(
value
=
"id"
,
example
=
"1"
)
@ApiModelProperty
(
value
=
"id"
,
example
=
"1"
)
@Id
@Id
@GeneratedValue
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
@Column
(
name
=
"id"
)
@Column
(
name
=
"id"
)
private
int
id
;
private
int
id
;
...
@@ -62,7 +62,7 @@ public class Notice {
...
@@ -62,7 +62,7 @@ public class Notice {
private
String
message
;
private
String
message
;
/**
/**
* 通知状态
已查看 0,未
查看 1,已下载 2
* 通知状态
未查看 0,已
查看 1,已下载 2
*/
*/
@ApiModelProperty
(
value
=
"status"
,
example
=
"0"
,
dataType
=
"int"
,
name
=
"通知状态"
,
@ApiModelProperty
(
value
=
"status"
,
example
=
"0"
,
dataType
=
"int"
,
name
=
"通知状态"
,
notes
=
"未查看 0,已查看 1,已下载 2,默认 0"
)
notes
=
"未查看 0,已查看 1,已下载 2,默认 0"
)
...
@@ -72,8 +72,8 @@ public class Notice {
...
@@ -72,8 +72,8 @@ public class Notice {
/**
/**
* 通知类型 接受 0,发送 1,草稿 2
* 通知类型 接受 0,发送 1,草稿 2
*/
*/
@ApiModelProperty
(
value
=
"type"
,
example
=
"
0
"
,
dataType
=
"int"
,
name
=
"通知类型"
,
@ApiModelProperty
(
value
=
"type"
,
example
=
"
1
"
,
dataType
=
"int"
,
name
=
"通知类型"
,
notes
=
"接收 0,发送 1,草稿 2,默认
0
"
)
notes
=
"接收 0,发送 1,草稿 2,默认
1
"
)
@Column
(
name
=
"type"
)
@Column
(
name
=
"type"
)
private
int
type
;
private
int
type
;
...
...
efs-bus/src/main/java/com/zjty/efs/bus/entity/Paging.java
0 → 100644
浏览文件 @
00b27522
package
com
.
zjty
.
efs
.
bus
.
entity
;
import
com.zjty.efs.misc.config.AutoDocument
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.util.List
;
@AutoDocument
@ApiModel
(
value
=
"分页"
)
@Data
@AllArgsConstructor
@NoArgsConstructor
public
class
Paging
<
T
>
{
@ApiModelProperty
(
value
=
"total"
,
example
=
"12"
,
dataType
=
"int"
,
name
=
"总数"
)
private
int
total
;
@ApiModelProperty
(
value
=
"pageSize"
,
example
=
"10"
,
dataType
=
"int"
,
name
=
"每页条数"
)
private
int
pageSize
;
@ApiModelProperty
(
value
=
"pageNum"
,
example
=
"1"
,
dataType
=
"int"
,
name
=
"页码"
,
notes
=
"从1开始"
)
private
int
pageNum
;
@ApiModelProperty
(
value
=
"data"
,
example
=
""
)
List
<
T
>
data
;
}
efs-bus/src/main/java/com/zjty/efs/bus/service/AttentionService.java
浏览文件 @
00b27522
package
com
.
zjty
.
efs
.
bus
.
service
;
package
com
.
zjty
.
efs
.
bus
.
service
;
import
com.zjty.efs.bus.entity.Attention
;
import
com.zjty.efs.bus.entity.Attention
;
import
com.zjty.efs.bus.entity.Paging
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Page
;
public
interface
AttentionService
{
public
interface
AttentionService
{
Pag
e
<
Attention
>
getAttentionList
(
int
userId
,
int
pageNum
,
int
pageSize
);
Pag
ing
<
Attention
>
getAttentionList
(
int
userId
,
int
pageNum
,
int
pageSize
);
}
}
efs-bus/src/main/java/com/zjty/efs/bus/service/NoticeService.java
浏览文件 @
00b27522
package
com
.
zjty
.
efs
.
bus
.
service
;
package
com
.
zjty
.
efs
.
bus
.
service
;
import
com.alibaba.fastjson.JSONObject
;
import
com.zjty.efs.bus.entity.Notice
;
import
com.zjty.efs.bus.entity.Notice
;
import
org.springframework.data.domain.Page
;
import
com.zjty.efs.bus.entity.Paging
;
import
java.util.List
;
import
java.util.List
;
...
@@ -37,7 +36,7 @@ public interface NoticeService {
...
@@ -37,7 +36,7 @@ public interface NoticeService {
*
*
* @return 通知json对象
* @return 通知json对象
*/
*/
Pag
e
<
Notice
>
getReceiveList
(
int
user
,
int
type
,
int
pageNum
,
int
pageSize
);
Pag
ing
<
Notice
>
getReceiveList
(
int
user
,
int
type
,
int
pageNum
,
int
pageSize
);
/**
/**
* 修改通知为已读
* 修改通知为已读
...
@@ -46,4 +45,14 @@ public interface NoticeService {
...
@@ -46,4 +45,14 @@ public interface NoticeService {
boolean
updateStatus
(
List
<
Notice
>
notices
);
boolean
updateStatus
(
List
<
Notice
>
notices
);
/**
* 获取当前用户未读的接收通知
* @param userId 当前用户
* @param status 0 未读
* @param type 0 接收通知
* @return
*/
List
<
Notice
>
findBySender
(
int
userId
,
int
status
,
int
type
);
}
}
efs-bus/src/main/java/com/zjty/efs/bus/service/impl/AttentionServiceImpl.java
浏览文件 @
00b27522
package
com
.
zjty
.
efs
.
bus
.
service
.
impl
;
package
com
.
zjty
.
efs
.
bus
.
service
.
impl
;
import
com.zjty.efs.bus.Dao.AttentionDao
;
import
com.zjty.efs.bus.entity.Attention
;
import
com.zjty.efs.bus.entity.Attention
;
import
com.zjty.efs.bus.entity.Paging
;
import
com.zjty.efs.bus.service.AttentionService
;
import
com.zjty.efs.bus.service.AttentionService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.PageRequest
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.domain.Sort
;
public
class
AttentionServiceImpl
implements
AttentionService
{
public
class
AttentionServiceImpl
implements
AttentionService
{
@Autowired
AttentionDao
attentionDao
;
@Override
@Override
public
Page
<
Attention
>
getAttentionList
(
int
userId
,
int
pageNum
,
int
pageSize
)
{
public
Paging
<
Attention
>
getAttentionList
(
int
userId
,
int
pageNum
,
int
pageSize
)
{
return
null
;
try
{
Pageable
pageable
=
PageRequest
.
of
(
pageNum
-
1
,
pageSize
,
Sort
.
Direction
.
DESC
,
"updateTime"
);
Page
<
Attention
>
p
=
attentionDao
.
findOutByUserId
(
userId
,
pageable
);
Paging
<
Attention
>
paging
=
new
Paging
<>();
paging
.
setTotal
((
int
)
p
.
getTotalElements
());
paging
.
setPageNum
(
pageNum
);
paging
.
setPageSize
(
pageSize
);
paging
.
setData
(
p
.
getContent
());
return
paging
;
}
catch
(
Exception
e
){
e
.
printStackTrace
();
return
null
;
}
}
public
boolean
addAttention
(
int
noticeId
){
return
true
;
}
}
}
}
efs-bus/src/main/java/com/zjty/efs/bus/service/impl/NoticeServiceImpl.java
浏览文件 @
00b27522
package
com
.
zjty
.
efs
.
bus
.
service
.
impl
;
package
com
.
zjty
.
efs
.
bus
.
service
.
impl
;
import
com.alibaba.fastjson.JSONObject
;
import
com.zjty.efs.bus.Dao.NoticeDao
;
import
com.zjty.efs.bus.Dao.NoticeDao
;
import
com.zjty.efs.bus.entity.Notice
;
import
com.zjty.efs.bus.entity.Notice
;
import
com.zjty.efs.bus.entity.Paging
;
import
com.zjty.efs.bus.service.NoticeService
;
import
com.zjty.efs.bus.service.NoticeService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Page
;
...
@@ -12,21 +12,29 @@ import org.springframework.data.domain.Pageable;
...
@@ -12,21 +12,29 @@ import org.springframework.data.domain.Pageable;
import
org.springframework.data.domain.Sort
;
import
org.springframework.data.domain.Sort
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
@Service
@Service
public
class
NoticeServiceImpl
implements
NoticeService
{
public
class
NoticeServiceImpl
implements
NoticeService
{
@Autowired
@Autowired
NoticeDao
noticeDao
;
NoticeDao
noticeDao
;
@Override
@Override
public
boolean
addNotice
(
Notice
notice
)
{
public
boolean
addNotice
(
Notice
notice
)
{
try
{
try
{
noticeDao
.
save
(
notice
);
noticeDao
.
save
(
notice
);
notice
.
setType
(
0
);
noticeDao
.
save
(
notice
);
Notice
notice1
=
new
Notice
();
notice1
.
setType
(
0
);
notice1
.
setTitle
(
notice
.
getTitle
());
notice1
.
setAddressee
(
notice
.
getAddressee
());
notice1
.
setDeadline
(
notice
.
getDeadline
());
notice1
.
setFileList
(
notice
.
getFileList
());
notice1
.
setMessage
(
notice
.
getMessage
());
notice1
.
setNote
(
notice
.
getNote
());
notice1
.
setSender
(
notice
.
getSender
());
notice1
.
setStatus
(
notice
.
getStatus
());
notice1
.
setUpdateTime
(
notice
.
getUpdateTime
());
noticeDao
.
save
(
notice1
);
return
true
;
return
true
;
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
...
@@ -51,7 +59,10 @@ public class NoticeServiceImpl implements NoticeService {
...
@@ -51,7 +59,10 @@ public class NoticeServiceImpl implements NoticeService {
@Override
@Override
public
Notice
getNotice
(
int
id
)
{
public
Notice
getNotice
(
int
id
)
{
try
{
try
{
return
noticeDao
.
findById
(
id
);
Notice
notice
=
noticeDao
.
findById
(
id
);
notice
.
setStatus
(
1
);
noticeDao
.
save
(
notice
);
return
notice
;
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
e
.
printStackTrace
();
e
.
printStackTrace
();
return
null
;
return
null
;
...
@@ -60,11 +71,16 @@ public class NoticeServiceImpl implements NoticeService {
...
@@ -60,11 +71,16 @@ public class NoticeServiceImpl implements NoticeService {
}
}
@Override
@Override
public
Pag
e
<
Notice
>
getReceiveList
(
int
user
,
int
type
,
int
pageNum
,
int
pageSize
)
{
public
Pag
ing
<
Notice
>
getReceiveList
(
int
user
,
int
type
,
int
pageNum
,
int
pageSize
)
{
Pageable
pageable
=
PageRequest
.
of
(
pageNum
-
1
,
pageSize
,
Sort
.
Direction
.
DESC
,
"updateTime"
);
Pageable
pageable
=
PageRequest
.
of
(
pageNum
-
1
,
pageSize
,
Sort
.
Direction
.
DESC
,
"updateTime"
);
Page
<
Notice
>
p
=
noticeDao
.
findOutBySenderAndType
(
user
,
type
,
pageable
);
Page
<
Notice
>
p
=
noticeDao
.
findOutBySenderAndType
(
user
,
type
,
pageable
);
return
p
;
Paging
<
Notice
>
paging
=
new
Paging
<>();
paging
.
setData
(
p
.
getContent
());
paging
.
setPageSize
(
pageSize
);
paging
.
setPageNum
(
pageNum
);
paging
.
setTotal
((
int
)
p
.
getTotalElements
());
return
paging
;
}
}
@Override
@Override
...
@@ -79,4 +95,16 @@ public class NoticeServiceImpl implements NoticeService {
...
@@ -79,4 +95,16 @@ public class NoticeServiceImpl implements NoticeService {
return
false
;
return
false
;
}
}
}
}
@Override
public
List
<
Notice
>
findBySender
(
int
userId
,
int
status
,
int
type
)
{
try
{
return
noticeDao
.
findOutBySenderAndStatusAndType
(
userId
,
status
,
type
);
}
catch
(
Exception
e
){
e
.
printStackTrace
();
return
null
;
}
}
}
}
efs-bus/src/main/resources/application.properties
浏览文件 @
00b27522
...
@@ -4,7 +4,7 @@ spring.datasource.url=jdbc:mysql://localhost:3306/efs-notice?useSSL=false&server
...
@@ -4,7 +4,7 @@ spring.datasource.url=jdbc:mysql://localhost:3306/efs-notice?useSSL=false&server
spring.datasource.driver-class-name
=
com.mysql.jdbc.Driver
spring.datasource.driver-class-name
=
com.mysql.jdbc.Driver
spring.datasource.username
=
root
spring.datasource.username
=
root
spring.datasource.password
=
root
spring.datasource.password
=
root
spring.jpa.properties.hibernate.format_sql
=
tru
e
spring.jpa.properties.hibernate.format_sql
=
fals
e
spring.main.allow-bean-definition-overriding
=
true
spring.main.allow-bean-definition-overriding
=
true
spring.jpa.hibernate.ddl-auto
=
update
spring.jpa.hibernate.ddl-auto
=
update
spring.jpa.show-sql
=
true
spring.jpa.show-sql
=
true
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论