接口路径重复bug
This commit is contained in:
parent
940647ce7f
commit
7baf646470
@ -1,19 +0,0 @@
|
|||||||
package com.management.config;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
|
|
||||||
import org.springframework.boot.autoconfigure.jackson.Jackson2ObjectMapperBuilderCustomizer;
|
|
||||||
import org.springframework.context.annotation.Bean;
|
|
||||||
import org.springframework.context.annotation.Configuration;
|
|
||||||
|
|
||||||
import java.time.LocalDateTime;
|
|
||||||
import java.time.format.DateTimeFormatter;
|
|
||||||
|
|
||||||
@Configuration
|
|
||||||
public class MagicBootConfiguration {
|
|
||||||
|
|
||||||
@Bean
|
|
||||||
public Jackson2ObjectMapperBuilderCustomizer jackson2ObjectMapperBuilderCustomizer() {
|
|
||||||
LocalDateTimeSerializer localDateTimeSerializer = new LocalDateTimeSerializer(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
|
|
||||||
return builder -> builder.serializerByType(LocalDateTime.class, localDateTimeSerializer);
|
|
||||||
}
|
|
||||||
}
|
|
@ -60,7 +60,7 @@ public class CRMTokenController {
|
|||||||
* @return void
|
* @return void
|
||||||
* @Author weiloong_zhang
|
* @Author weiloong_zhang
|
||||||
*/
|
*/
|
||||||
@PostMapping("/getToken")
|
@PostMapping("/maybeToken")
|
||||||
public void tokenReSync() {
|
public void tokenReSync() {
|
||||||
CrmRequestUtil crmRequestUtil = new CrmRequestUtil();
|
CrmRequestUtil crmRequestUtil = new CrmRequestUtil();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user