| | |
| | | package com.ruoyi.common.translation.config; |
| | | |
| | | import com.fasterxml.jackson.databind.ObjectMapper; |
| | | import com.ruoyi.common.translation.annotation.TranslationType; |
| | | import com.ruoyi.common.translation.core.TranslationInterface; |
| | | import com.ruoyi.common.translation.core.handler.TranslationHandler; |
| | |
| | | @Autowired |
| | | private List<TranslationInterface> list; |
| | | |
| | | @Autowired |
| | | private ObjectMapper objectMapper; |
| | | |
| | | @PostConstruct |
| | | public void init() { |
| | | Map<String, TranslationInterface> map = new HashMap<>(list.size()); |
| | |
| | | } |
| | | } |
| | | TranslationHandler.TRANSLATION_MAPPER.putAll(map); |
| | | // todo null值处理 |
| | | // objectMapper.getSerializerProvider().setNullValueSerializer(); |
| | | } |
| | | |
| | | } |