wip: 代码生成临时提交
This commit is contained in:
1 parent
4c7f8fe9c0
commit
7f6d429540
11 files changed
+181
-75
No files matched your search
@@ -0,0 +1,17 @@
|
||||
package com.youlai.system.config;
|
||||
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.fasterxml.jackson.databind.SerializationFeature;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
@Configuration
|
||||
public class JacksonConfig {
|
||||
|
||||
@Bean
|
||||
public ObjectMapper objectMapper() {
|
||||
ObjectMapper objectMapper = new ObjectMapper();
|
||||
objectMapper.configure(SerializationFeature.WRITE_ENUMS_USING_TO_STRING, true);
|
||||
return objectMapper;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user