Commit 875de6d064279d234d3a523623a91660a3ea0dab
1 parent
392c8059
1.
Showing
2 changed files
with
2 additions
and
7 deletions
src/main/java/com/bsth/server_rs/schedule/ScheduleTimeService.java
| 1 | 1 | package com.bsth.server_rs.schedule; |
| 2 | 2 | |
| 3 | -import com.bsth.entity.ScheduleExec; | |
| 4 | 3 | import com.bsth.entity.TimeTable; |
| 5 | 4 | import com.fasterxml.jackson.core.JsonProcessingException; |
| 6 | 5 | import com.fasterxml.jackson.databind.ObjectMapper; |
| ... | ... | @@ -30,7 +29,7 @@ public class ScheduleTimeService { |
| 30 | 29 | |
| 31 | 30 | @POST |
| 32 | 31 | @Path("") |
| 33 | - public Map<String, Object> destroy(List<TimeTable> timeTables) throws JsonProcessingException { | |
| 32 | + public Map<String, Object> save(List<TimeTable> timeTables) throws JsonProcessingException { | |
| 34 | 33 | Map<String, Object> result = new HashMap<>(); |
| 35 | 34 | log.info(mapper.writeValueAsString(timeTables)); |
| 36 | 35 | result.put("code", 0); | ... | ... |
src/main/resources/application.properties
| 1 | -spring.profiles: dev,prod | |
| 2 | -spring.profiles.active: prod | |
| 1 | +spring.profiles.active= prod | |
| 3 | 2 | |
| 4 | 3 | spring.view.suffix=.html |
| 5 | 4 | server.session-timeout=-1 |
| ... | ... | @@ -13,6 +12,3 @@ multipart.maxRequestSize = -1 |
| 13 | 12 | |
| 14 | 13 | server.compression.enabled=true |
| 15 | 14 | server.compression.mime-types=application/json,application/xml,text/html,text/xml,text/plain,text/javascript,text/css,application/javascript |
| 16 | - | |
| 17 | -#redis | |
| 18 | -cache.days=15 | ... | ... |