diff --git a/ruoyi-modules/ruoyi-gen/src/main/resources/vm/java/controller.java.vm b/ruoyi-modules/ruoyi-gen/src/main/resources/vm/java/controller.java.vm index 14177b5d..a8425371 100644 --- a/ruoyi-modules/ruoyi-gen/src/main/resources/vm/java/controller.java.vm +++ b/ruoyi-modules/ruoyi-gen/src/main/resources/vm/java/controller.java.vm @@ -27,6 +27,7 @@ import org.dromara.common.mybatis.core.page.TableDataInfo; /** * ${functionName} + * 前端访问路由地址为:/${moduleName}/${businessName} * * @author ${author} * @date ${datetime} @@ -34,7 +35,7 @@ import org.dromara.common.mybatis.core.page.TableDataInfo; @Validated @RequiredArgsConstructor @RestController -@RequestMapping("/${moduleName}/${businessName}") +@RequestMapping("/${businessName}") public class ${ClassName}Controller extends BaseController { private final I${ClassName}Service ${className}Service;