Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
education
Project
Project
Details
Activity
Releases
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
李丛阳
education
Commits
15d0c4cb
Commit
15d0c4cb
authored
Dec 27, 2017
by
xingyuji
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
选课相关接口权限小改动,配置文件改动--文件上传限制大小
parent
11efd28a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
BSlController.java
...va/org/rcisoft/business/bsl/controller/BSlController.java
+2
-2
application-dev.yml
src/main/resources/application-dev.yml
+4
-3
No files found.
src/main/java/org/rcisoft/business/bsl/controller/BSlController.java
View file @
15d0c4cb
...
...
@@ -192,7 +192,7 @@ public class BSlController extends PaginationController<BSl> {
@ApiOperation
(
value
=
"上传封面"
,
notes
=
"根据ID上传课程封面"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"id"
,
value
=
"businessId"
,
required
=
true
,
dataType
=
"varchar"
),
@ApiImplicitParam
(
name
=
"file"
,
value
=
"图片文件"
,
required
=
false
,
dataType
=
"MultipartFile"
)})
@PreAuthorize
(
"hasRole('ROLE_100
1
')"
)
@PreAuthorize
(
"hasRole('ROLE_100
2
')"
)
@PostMapping
(
value
=
"/uploadCover"
)
public
Result
uploadCover
(
@RequestParam
(
"file"
)
MultipartFile
cover
,
@RequestParam
(
"id"
)
String
id
)
{
...
...
@@ -220,7 +220,7 @@ public class BSlController extends PaginationController<BSl> {
@ApiOperation
(
value
=
"修改课程简介"
,
notes
=
"修改课程简介"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"id"
,
value
=
"businessId"
,
required
=
true
,
dataType
=
"varchar"
),
@ApiImplicitParam
(
name
=
"notes"
,
value
=
"课程简介"
,
required
=
false
,
dataType
=
"varchar"
)})
@PreAuthorize
(
"hasRole('ROLE_100
1
')"
)
@PreAuthorize
(
"hasRole('ROLE_100
2
')"
)
@PostMapping
(
value
=
"/updateNotes"
)
public
Result
updateNotes
(
@RequestParam
(
"notes"
)
String
notes
,
@RequestParam
(
"id"
)
String
id
)
{
...
...
src/main/resources/application-dev.yml
View file @
15d0c4cb
...
...
@@ -11,9 +11,9 @@ server:
# org.springframework.web: DEBUG
druid
:
url
:
jdbc:mysql://127.0.0.1:3306/edu_db?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true
url
:
jdbc:mysql://127.0.0.1:3306/edu_db
2
?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true
username
:
root
password
:
root
password
:
123456
initial-size
:
1
min-idle
:
1
max-active
:
20
...
...
@@ -40,12 +40,13 @@ pagehelper:
spring
:
jackson
:
default-property-inclusion
:
non_null
#
http:
http
:
# encoding:
# force: true
# charset: UTF-8
# enabled: true
multipart
:
enabled
:
true
max-file-size
:
100Mb
max-request-size
:
1000Mb
mvc
:
...
...
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