Commit 875de6d064279d234d3a523623a91660a3ea0dab

Authored by 王通
1 parent 392c8059

1.

src/main/java/com/bsth/server_rs/schedule/ScheduleTimeService.java
1 package com.bsth.server_rs.schedule; 1 package com.bsth.server_rs.schedule;
2 2
3 -import com.bsth.entity.ScheduleExec;  
4 import com.bsth.entity.TimeTable; 3 import com.bsth.entity.TimeTable;
5 import com.fasterxml.jackson.core.JsonProcessingException; 4 import com.fasterxml.jackson.core.JsonProcessingException;
6 import com.fasterxml.jackson.databind.ObjectMapper; 5 import com.fasterxml.jackson.databind.ObjectMapper;
@@ -30,7 +29,7 @@ public class ScheduleTimeService { @@ -30,7 +29,7 @@ public class ScheduleTimeService {
30 29
31 @POST 30 @POST
32 @Path("") 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 Map<String, Object> result = new HashMap<>(); 33 Map<String, Object> result = new HashMap<>();
35 log.info(mapper.writeValueAsString(timeTables)); 34 log.info(mapper.writeValueAsString(timeTables));
36 result.put("code", 0); 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 spring.view.suffix=.html 3 spring.view.suffix=.html
5 server.session-timeout=-1 4 server.session-timeout=-1
@@ -13,6 +12,3 @@ multipart.maxRequestSize = -1 @@ -13,6 +12,3 @@ multipart.maxRequestSize = -1
13 12
14 server.compression.enabled=true 13 server.compression.enabled=true
15 server.compression.mime-types=application/json,application/xml,text/html,text/xml,text/plain,text/javascript,text/css,application/javascript 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