Skip to content

Commit

Permalink
Merge branch 'master' into personal
Browse files Browse the repository at this point in the history
  • Loading branch information
yomea committed Jan 10, 2025
2 parents f3b7f05 + 79bcd46 commit ac3fce9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public class BeanConfig {

@Bean
public ConfigurationCustomizer configurationCustomizer() {
// 用于自定义 MybatisConfiguration
return configuration ->
{
TypeHandlerRegistry typeHandlerRegistry = configuration.getTypeHandlerRegistry();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import org.apache.ibatis.type.MappedTypes;
import org.springframework.stereotype.Component;

// 如果不是自定义 MybatisConfiguration ,这个类必须要纳入到spring管理,否则不生效
@Component
//定义转换器支持的JAVA类型
@MappedTypes(LocalDateTime.class)
Expand Down

0 comments on commit ac3fce9

Please sign in to comment.