From 852b1b222dd9641888d1a0d98c4a1aeb17b4aa78 Mon Sep 17 00:00:00 2001 From: Suomm <1474983351@qq.com> Date: Wed, 15 May 2024 19:44:35 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E6=B5=8B=E8=AF=95=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E7=94=9F=E6=88=90=E5=99=A8=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/mybatisflex/codegen/test/GeneratorTest.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/mybatis-flex-codegen/src/test/java/com/mybatisflex/codegen/test/GeneratorTest.java b/mybatis-flex-codegen/src/test/java/com/mybatisflex/codegen/test/GeneratorTest.java index dd19468e..d589ecd2 100644 --- a/mybatis-flex-codegen/src/test/java/com/mybatisflex/codegen/test/GeneratorTest.java +++ b/mybatis-flex-codegen/src/test/java/com/mybatisflex/codegen/test/GeneratorTest.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2023, Mybatis-Flex (fuhai999@gmail.com). + * Copyright (c) 2022-2024, Mybatis-Flex (fuhai999@gmail.com). *

* Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,6 +23,7 @@ import com.mybatisflex.codegen.config.TableConfig; import com.mybatisflex.codegen.config.TableDefConfig; import com.mybatisflex.codegen.constant.TemplateConst; import com.mybatisflex.core.mask.Masks; +import com.mybatisflex.spring.service.impl.CacheableServiceImpl; import com.zaxxer.hikari.HikariDataSource; import org.junit.Test; @@ -87,13 +88,13 @@ public class GeneratorTest { generator.generate(); } - // @Test + // @Test public void testCodeGen2() { // 配置数据源 HikariDataSource dataSource = new HikariDataSource(); dataSource.setJdbcUrl("jdbc:mysql://127.0.0.1:3306/test?characterEncoding=utf-8"); dataSource.setUsername("root"); - dataSource.setPassword("123456"); + dataSource.setPassword("12345678"); GlobalConfig globalConfig = new GlobalConfig(); @@ -133,7 +134,7 @@ public class GeneratorTest { globalConfig.enableService(); // 配置生成 serviceImpl globalConfig.enableServiceImpl() -// .setSuperClass(CacheableServiceImpl.class) + .setSuperClass(CacheableServiceImpl.class) .setCacheExample(true); // 配置生成 controller globalConfig.enableController();