From 544d000c2ee4d749210b6748ec97acf5597da9aa Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期五, 02 六月 2023 17:25:30 +0800 Subject: [PATCH] 5.替换 com.lf. 为 com.moon. --- src/main/resources/mybatis.xml | 2 +- src/main/java/com/moon/server/controller/sys/ResOpController.java | 2 +- src/main/java/com/moon/server/config/SwaggerConfig.java | 2 +- src/main/java/com/moon/server/controller/data/DirController.java | 6 +++--- src/main/java/com/moon/server/controller/sys/AuthController.java | 2 +- src/main/java/com/moon/server/controller/sys/MenuController.java | 4 ++-- src/main/resources/logback-spring.xml | 2 +- src/main/java/com/moon/server/controller/sys/TokenController.java | 2 +- src/main/java/com/moon/server/controller/sys/UserController.java | 2 +- src/main/java/com/moon/server/controller/sys/LoginController.java | 2 +- src/main/java/com/moon/server/controller/sys/OperateController.java | 2 +- src/main/java/com/moon/server/controller/data/VerController.java | 2 +- src/main/java/com/moon/server/config/MybatisPlusConfig.java | 2 +- src/main/java/com/moon/server/controller/data/StyleController.java | 4 ++-- src/main/java/com/moon/server/controller/sys/DepController.java | 4 ++-- src/main/java/com/moon/server/controller/sys/ResController.java | 2 +- src/main/java/com/moon/server/controller/sys/RoleController.java | 2 +- src/main/java/com/moon/server/service/all/TestService.java | 2 +- src/main/resources/application.yml | 4 ++-- 19 files changed, 25 insertions(+), 25 deletions(-) diff --git a/src/main/java/com/moon/server/config/MybatisPlusConfig.java b/src/main/java/com/moon/server/config/MybatisPlusConfig.java index fc75a31..87ba7df 100644 --- a/src/main/java/com/moon/server/config/MybatisPlusConfig.java +++ b/src/main/java/com/moon/server/config/MybatisPlusConfig.java @@ -18,7 +18,7 @@ */ @EnableTransactionManagement @Configuration -@MapperScan("com.lf.server.mapper") +@MapperScan("com.moon.server.mapper") public class MybatisPlusConfig { /** * 鏂扮殑鍒嗛〉鎻掍欢,涓�缂撳拰浜岀紦閬靛惊mybatis鐨勮鍒�,闇�瑕佽缃� diff --git a/src/main/java/com/moon/server/config/SwaggerConfig.java b/src/main/java/com/moon/server/config/SwaggerConfig.java index cf1889c..51ca313 100644 --- a/src/main/java/com/moon/server/config/SwaggerConfig.java +++ b/src/main/java/com/moon/server/config/SwaggerConfig.java @@ -51,7 +51,7 @@ public Docket createRestApi() { return new Docket(DocumentationType.SWAGGER_2) .apiInfo(apiInfo()).select() - .apis(RequestHandlerSelectors.basePackage("com.lf.server.controller")) + .apis(RequestHandlerSelectors.basePackage("com.moon.server.controller")) //.securitySchemes(securitySchemes()) //.securityContexts(securityContexts()) .paths(PathSelectors.any()).build(); diff --git a/src/main/java/com/moon/server/controller/data/DirController.java b/src/main/java/com/moon/server/controller/data/DirController.java index 5e8051c..a68093d 100644 --- a/src/main/java/com/moon/server/controller/data/DirController.java +++ b/src/main/java/com/moon/server/controller/data/DirController.java @@ -37,7 +37,7 @@ @SysLog() @ApiOperation(value = "鎻掑叆涓�鏉�") @ApiImplicitParams({ - @ApiImplicitParam(name = "entity", value = "瀹炰綋绫�", dataType = "com.lf.server.entity.data.DirEntity", paramType = "body", example = "") + @ApiImplicitParam(name = "entity", value = "瀹炰綋绫�", dataType = "DirEntity", paramType = "body", example = "") }) @PostMapping(value = "/insertDir", produces = "application/json; charset=UTF-8") public ResponseMsg<Integer> insertDir(@RequestBody DirEntity entity, HttpServletRequest req) { @@ -58,7 +58,7 @@ @SysLog() @ApiOperation(value = "鎻掑叆澶氭潯") @ApiImplicitParams({ - @ApiImplicitParam(name = "list", value = "瀹炰綋绫婚泦鍚�", dataType = "com.lf.server.entity.data.DirEntity", paramType = "body", example = "") + @ApiImplicitParam(name = "list", value = "瀹炰綋绫婚泦鍚�", dataType = "DirEntity", paramType = "body", example = "") }) @PostMapping(value = "/insertDirs", produces = "application/json; charset=UTF-8") public ResponseMsg<Integer> insertDirs(@RequestBody List<DirEntity> list, HttpServletRequest req) { @@ -95,7 +95,7 @@ @SysLog() @ApiOperation(value = "鍒犻櫎澶氭潯") @ApiImplicitParams({ - @ApiImplicitParam(name = "ids", value = "ID鏁扮粍", dataType = "com.lf.server.entity.data.DirEntity", paramType = "body", example = "") + @ApiImplicitParam(name = "ids", value = "ID鏁扮粍", dataType = "DirEntity", paramType = "body", example = "") }) @GetMapping(value = "/deleteDirs") public ResponseMsg<Integer> deleteDirs(@RequestParam List<Integer> ids) { diff --git a/src/main/java/com/moon/server/controller/data/StyleController.java b/src/main/java/com/moon/server/controller/data/StyleController.java index 0679aa4..b67f4f0 100644 --- a/src/main/java/com/moon/server/controller/data/StyleController.java +++ b/src/main/java/com/moon/server/controller/data/StyleController.java @@ -121,7 +121,7 @@ @SysLog() @ApiOperation(value = "鎻掑叆涓�鏉�") @ApiImplicitParams({ - @ApiImplicitParam(name = "entity", value = "瀹炰綋绫�", dataType = "com.lf.server.entity.data.StyleEntity", paramType = "body", example = "") + @ApiImplicitParam(name = "entity", value = "瀹炰綋绫�", dataType = "StyleEntity", paramType = "body", example = "") }) @PostMapping(value = "/insertStyle", produces = "application/json; charset=UTF-8") public ResponseMsg<Integer> insertStyle(@RequestBody StyleEntity entity, HttpServletRequest req) { @@ -142,7 +142,7 @@ @SysLog() @ApiOperation(value = "鎻掑叆澶氭潯") @ApiImplicitParams({ - @ApiImplicitParam(name = "list", value = "瀹炰綋绫婚泦鍚�", dataType = "com.lf.server.entity.data.StyleEntity", paramType = "body", example = "") + @ApiImplicitParam(name = "list", value = "瀹炰綋绫婚泦鍚�", dataType = "StyleEntity", paramType = "body", example = "") }) @PostMapping(value = "/insertStyles", produces = "application/json; charset=UTF-8") public ResponseMsg<Integer> insertStyles(@RequestBody List<StyleEntity> list, HttpServletRequest req) { diff --git a/src/main/java/com/moon/server/controller/data/VerController.java b/src/main/java/com/moon/server/controller/data/VerController.java index f018827..469ba6c 100644 --- a/src/main/java/com/moon/server/controller/data/VerController.java +++ b/src/main/java/com/moon/server/controller/data/VerController.java @@ -63,7 +63,7 @@ @SysLog() @ApiOperation(value = "鎻掑叆涓�鏉�") @ApiImplicitParams({ - @ApiImplicitParam(name = "entity", value = "瀹炰綋绫�", dataType = "com.lf.server.entity.data.VersionEntity", paramType = "body", example = "") + @ApiImplicitParam(name = "entity", value = "瀹炰綋绫�", dataType = "VersionEntity", paramType = "body", example = "") }) @PostMapping(value = "/insertVersion", produces = "application/json; charset=UTF-8") public ResponseMsg<Integer> insertVersion(@RequestBody VerEntity entity, HttpServletRequest req) { diff --git a/src/main/java/com/moon/server/controller/sys/AuthController.java b/src/main/java/com/moon/server/controller/sys/AuthController.java index 8f76ffd..89a3160 100644 --- a/src/main/java/com/moon/server/controller/sys/AuthController.java +++ b/src/main/java/com/moon/server/controller/sys/AuthController.java @@ -129,7 +129,7 @@ @SysLog() @ApiOperation(value = "鎻掑叆涓�鏉�") @ApiImplicitParams({ - @ApiImplicitParam(name = "entity", value = "瀹炰綋绫�", dataType = "com.lf.server.entity.sys.AuthEntity", paramType = "body", example = "") + @ApiImplicitParam(name = "entity", value = "瀹炰綋绫�", dataType = "AuthEntity", paramType = "body", example = "") }) @PostMapping(value = "/insertAuth", produces = "application/json; charset=UTF-8") public ResponseMsg<Integer> insertAuth(@RequestBody AuthEntity entity, HttpServletRequest req) { diff --git a/src/main/java/com/moon/server/controller/sys/DepController.java b/src/main/java/com/moon/server/controller/sys/DepController.java index ec0cdcc..25e1289 100644 --- a/src/main/java/com/moon/server/controller/sys/DepController.java +++ b/src/main/java/com/moon/server/controller/sys/DepController.java @@ -36,7 +36,7 @@ @SysLog() @ApiOperation(value = "鎻掑叆涓�鏉�") @ApiImplicitParams({ - @ApiImplicitParam(name = "entity", value = "瀹炰綋绫�", dataType = "com.lf.server.entity.sys.DepEntity", paramType = "body", example = "") + @ApiImplicitParam(name = "entity", value = "瀹炰綋绫�", dataType = "DepEntity", paramType = "body", example = "") }) @PostMapping(value = "/insertDep", produces = "application/json; charset=UTF-8") public ResponseMsg<Integer> insertDep(@RequestBody DepEntity entity, HttpServletRequest req) { @@ -57,7 +57,7 @@ @SysLog() @ApiOperation(value = "鎻掑叆澶氭潯") @ApiImplicitParams({ - @ApiImplicitParam(name = "list", value = "瀹炰綋绫婚泦鍚�", dataType = "com.lf.server.entity.sys.DepEntity", paramType = "body", example = "") + @ApiImplicitParam(name = "list", value = "瀹炰綋绫婚泦鍚�", dataType = "DepEntity", paramType = "body", example = "") }) @PostMapping(value = "/insertDes", produces = "application/json; charset=UTF-8") public ResponseMsg<Integer> insertDes(@RequestBody List<DepEntity> list, HttpServletRequest req) { diff --git a/src/main/java/com/moon/server/controller/sys/LoginController.java b/src/main/java/com/moon/server/controller/sys/LoginController.java index bfca664..5943f64 100644 --- a/src/main/java/com/moon/server/controller/sys/LoginController.java +++ b/src/main/java/com/moon/server/controller/sys/LoginController.java @@ -109,7 +109,7 @@ @SysLog() @ApiOperation(value = "鎻掑叆涓�鏉�") @ApiImplicitParams({ - @ApiImplicitParam(name = "entity", value = "瀹炰綋绫�", dataType = "com.lf.server.entity.sys.LoginEntity", paramType = "body", example = "") + @ApiImplicitParam(name = "entity", value = "瀹炰綋绫�", dataType = "LoginEntity", paramType = "body", example = "") }) @PostMapping(value = "/insertLogin", produces = "application/json; charset=UTF-8") public ResponseMsg<Integer> insertLogin(@RequestBody LoginEntity entity, HttpServletRequest req) { diff --git a/src/main/java/com/moon/server/controller/sys/MenuController.java b/src/main/java/com/moon/server/controller/sys/MenuController.java index 331129b..a853c4c 100644 --- a/src/main/java/com/moon/server/controller/sys/MenuController.java +++ b/src/main/java/com/moon/server/controller/sys/MenuController.java @@ -40,7 +40,7 @@ @SysLog() @ApiOperation(value = "鎻掑叆涓�鏉�") @ApiImplicitParams({ - @ApiImplicitParam(name = "entity", value = "瀹炰綋绫�", dataType = "com.lf.server.entity.sys.MenusEntity", paramType = "body", example = "") + @ApiImplicitParam(name = "entity", value = "瀹炰綋绫�", dataType = "MenusEntity", paramType = "body", example = "") }) @PostMapping(value = "/insertMenu", produces = "application/json; charset=UTF-8") public ResponseMsg<Integer> insertMenu(@RequestBody MenuEntity entity, HttpServletRequest req) { @@ -64,7 +64,7 @@ @SysLog() @ApiOperation(value = "鎻掑叆澶氭潯") @ApiImplicitParams({ - @ApiImplicitParam(name = "list", value = "瀹炰綋绫婚泦鍚�", dataType = "com.lf.server.entity.sys.MenusEntity", paramType = "body", example = "") + @ApiImplicitParam(name = "list", value = "瀹炰綋绫婚泦鍚�", dataType = "MenusEntity", paramType = "body", example = "") }) @PostMapping(value = "/insertMenus", produces = "application/json; charset=UTF-8") public ResponseMsg<Integer> insertMenus(@RequestBody List<MenuEntity> list, HttpServletRequest req) { diff --git a/src/main/java/com/moon/server/controller/sys/OperateController.java b/src/main/java/com/moon/server/controller/sys/OperateController.java index 6180f10..3246e45 100644 --- a/src/main/java/com/moon/server/controller/sys/OperateController.java +++ b/src/main/java/com/moon/server/controller/sys/OperateController.java @@ -108,7 +108,7 @@ @SysLog() @ApiOperation(value = "鎻掑叆涓�鏉�") @ApiImplicitParams({ - @ApiImplicitParam(name = "entity", value = "瀹炰綋绫�", dataType = "com.lf.server.entity.sys.OperateEntity", paramType = "body", example = "") + @ApiImplicitParam(name = "entity", value = "瀹炰綋绫�", dataType = "OperateEntity", paramType = "body", example = "") }) @PostMapping(value = "/insertOperate", produces = "application/json; charset=UTF-8") public ResponseMsg<Integer> insertOperate(@RequestBody OperateEntity entity, HttpServletRequest req) { diff --git a/src/main/java/com/moon/server/controller/sys/ResController.java b/src/main/java/com/moon/server/controller/sys/ResController.java index 879b3f7..9f6ad96 100644 --- a/src/main/java/com/moon/server/controller/sys/ResController.java +++ b/src/main/java/com/moon/server/controller/sys/ResController.java @@ -141,7 +141,7 @@ @SysLog() @ApiOperation(value = "鎻掑叆涓�鏉�") @ApiImplicitParams({ - @ApiImplicitParam(name = "entity", value = "瀹炰綋绫�", dataType = "com.lf.server.entity.sys.ResEntity", paramType = "body", example = "") + @ApiImplicitParam(name = "entity", value = "瀹炰綋绫�", dataType = "ResEntity", paramType = "body", example = "") }) @PostMapping(value = "/insertRes", produces = "application/json; charset=UTF-8") public ResponseMsg<Integer> insertRes(@RequestBody ResEntity entity, HttpServletRequest req) { diff --git a/src/main/java/com/moon/server/controller/sys/ResOpController.java b/src/main/java/com/moon/server/controller/sys/ResOpController.java index a781469..079fbf5 100644 --- a/src/main/java/com/moon/server/controller/sys/ResOpController.java +++ b/src/main/java/com/moon/server/controller/sys/ResOpController.java @@ -108,7 +108,7 @@ @SysLog() @ApiOperation(value = "鎻掑叆涓�鏉�") @ApiImplicitParams({ - @ApiImplicitParam(name = "entity", value = "瀹炰綋绫�", dataType = "com.lf.server.entity.sys.ResOpEntity", paramType = "body", example = "") + @ApiImplicitParam(name = "entity", value = "瀹炰綋绫�", dataType = "ResOpEntity", paramType = "body", example = "") }) @PostMapping(value = "/insertResOp", produces = "application/json; charset=UTF-8") public ResponseMsg<Integer> insertResOp(@RequestBody ResOpEntity entity, HttpServletRequest req) { diff --git a/src/main/java/com/moon/server/controller/sys/RoleController.java b/src/main/java/com/moon/server/controller/sys/RoleController.java index da44181..b9a353d 100644 --- a/src/main/java/com/moon/server/controller/sys/RoleController.java +++ b/src/main/java/com/moon/server/controller/sys/RoleController.java @@ -107,7 +107,7 @@ @SysLog() @ApiOperation(value = "鎻掑叆涓�鏉�") @ApiImplicitParams({ - @ApiImplicitParam(name = "entity", value = "瀹炰綋绫�", dataType = "com.lf.server.entity.sys.RoleEntity", paramType = "body", example = "") + @ApiImplicitParam(name = "entity", value = "瀹炰綋绫�", dataType = "RoleEntity", paramType = "body", example = "") }) @PostMapping(value = "/insertRole", produces = "application/json; charset=UTF-8") public ResponseMsg<Integer> insertRole(@RequestBody RoleEntity entity, HttpServletRequest req) { diff --git a/src/main/java/com/moon/server/controller/sys/TokenController.java b/src/main/java/com/moon/server/controller/sys/TokenController.java index 9b1373e..3ccfe6f 100644 --- a/src/main/java/com/moon/server/controller/sys/TokenController.java +++ b/src/main/java/com/moon/server/controller/sys/TokenController.java @@ -57,7 +57,7 @@ @SysLog() @ApiOperation(value = "鎻掑叆涓�鏉�") @ApiImplicitParams({ - @ApiImplicitParam(name = "entity", value = "瀹炰綋绫�", dataType = "com.lf.server.entity.sys.TokenEntity", paramType = "body", example = "") + @ApiImplicitParam(name = "entity", value = "瀹炰綋绫�", dataType = "TokenEntity", paramType = "body", example = "") }) @PostMapping(value = "/insertToken", produces = "application/json; charset=UTF-8") public ResponseMsg<Integer> insertToken(@RequestBody TokenEntity entity, HttpServletRequest req) { diff --git a/src/main/java/com/moon/server/controller/sys/UserController.java b/src/main/java/com/moon/server/controller/sys/UserController.java index ac84054..a125532 100644 --- a/src/main/java/com/moon/server/controller/sys/UserController.java +++ b/src/main/java/com/moon/server/controller/sys/UserController.java @@ -241,7 +241,7 @@ @SysLog() @ApiOperation(value = "鎻掑叆涓�鏉�") @ApiImplicitParams({ - @ApiImplicitParam(name = "entity", value = "瀹炰綋绫�", dataType = "com.lf.server.entity.data.UserEntity", paramType = "body", example = "") + @ApiImplicitParam(name = "entity", value = "瀹炰綋绫�", dataType = "UserEntity", paramType = "body", example = "") }) @PostMapping(value = "/insertUser", produces = "application/json; charset=UTF-8") public ResponseMsg<Integer> insertUser(@RequestBody UserEntity entity, HttpServletRequest req) { diff --git a/src/main/java/com/moon/server/service/all/TestService.java b/src/main/java/com/moon/server/service/all/TestService.java index 6d8d2c7..b0002cd 100644 --- a/src/main/java/com/moon/server/service/all/TestService.java +++ b/src/main/java/com/moon/server/service/all/TestService.java @@ -146,7 +146,7 @@ String entityName = "Gxcg"; String xls = "D:\\LF\\data\\xls\\娴嬬粯\\2-鍦颁笅绠$嚎鎺㈡祴鎴愭灉\\2-2 绠$嚎鎴愭灉琛�.xlsx"; - String className = "com.lf.server.entity.bs." + entityName; + String className = "com.moon.server.entity.bs." + entityName; Object obj = ClassHelper.createInstance(className); List<?> list = ExcelHelper.readExcel(obj.getClass(), xls); diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 2e972c2..810b310 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -101,12 +101,12 @@ # mybatis #mybatis: -# type-aliases-package: com.lf.server.entity +# type-aliases-package: com.moon.server.entity # config-location: classpath:mybatis.xml # mapper-locations: classpath:mapper/**/*.xml mybatis-plus: - type-aliases-package: com.lf.server.entity + type-aliases-package: com.moon.server.entity config-location: classpath:mybatis.xml mapper-locations: classpath:mapper/**/*.xml diff --git a/src/main/resources/logback-spring.xml b/src/main/resources/logback-spring.xml index aad9bae..02ec68a 100644 --- a/src/main/resources/logback-spring.xml +++ b/src/main/resources/logback-spring.xml @@ -93,7 +93,7 @@ <logger name="com.apache.ibatis" level="INFO"/> <!-- additivity:鏄惁鍦ㄧ埗(杩欓噷涓簉oot鑺傜偣)杈撳嚭, 榛樿 true; --> - <logger name="com.lf.server" level="INFO" additivity="true"> + <logger name="com.moon.server" level="INFO" additivity="true"> <appender-ref ref="INFO_FILE"/> <appender-ref ref="ERROR_FILE"/> </logger> diff --git a/src/main/resources/mybatis.xml b/src/main/resources/mybatis.xml index 0789380..5560ed0 100644 --- a/src/main/resources/mybatis.xml +++ b/src/main/resources/mybatis.xml @@ -32,6 +32,6 @@ <setting name="logImpl" value="NO_LOGGING" /> </settings> <typeAliases> - <package name="com.lf.server.entity"/> + <package name="com.moon.server.entity"/> </typeAliases> </configuration> \ No newline at end of file -- Gitblit v1.9.3