Skip to content
TheChatArchiveThe Chat Archive
Perplexitysonar-reasoning-pro-high· PerplexityHugging Face LMArena Search Arena 24K

怎么使用continew admin

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with gpt-4o-search-preview’s answer.
  1. User

    怎么使用continew admin

  2. Perplexity Assistant

    ContiNew Admin 是一个基于 Vue3 和 Spring Boot3 的前后端分离中后台管理框架,提供开箱即用的开发体验。以下是使用指南:

    快速启动

    1. 克隆项目
      后端:

      git clone https://github.com/Charles7c/continew-admin.git
      

      前端:

      git clone https://github.com/continew-org/continew-admin-ui.git
      
    2. 配置环境

      • 后端:Java 17、Maven 3.6+
      • 前端:Node.js 14+、npm 6+ 或 pnpm[4]
    3. 启动服务

      • 后端:
        cd continew-admin
        mvn clean install
        mvn spring-boot:run
        
      • 前端:
        cd continew-admin-ui
        pnpm i
        pnpm dev
        

      访问 http://localhost:5173 使用默认账号 admin/admin123 登录[1][4]。


    项目结构

    后端模块

    模块功能
    continew-admin-webapiAPI 入口(Controller 层)
    continew-admin-system系统管理(用户、角色、部门等)
    continew-admin-monitor日志监控与在线用户管理
    continew-admin-common公共工具类与配置

    前端目录

    continew-admin-ui
    ├─ src
    │  ├─ api         # 接口定义
    │  ├─ views       # 页面组件
    │  ├─ store       # 状态管理
    │  └─ router      # 路由配置
    

    核心功能

    1. 权限管理

      • RBAC 模型支持功能权限与数据权限[1][3]
      • 通过 @CrudRequestMapping 注解快速生成 CRUD API[4]
        示例:
      @CrudRequestMapping("/system/dept")
      public class DeptController extends BaseController<deptservice> {}
      
    2. 代码生成器

      • 根据数据库表自动生成前后端代码(支持 80% 以上重复代码)[3][4]
      • 配套模板支持自定义扩展。
    3. 数据操作

      • 基于 MyBatis Plus 的通用查询注解,简化 QueryWrapper 拼接[1]
      • 集成 Easy Excel 实现大数据量导出[1][4]。

    部署方案

    Docker 部署

    1. 后端打包:
      mvn package -P prod
      
    2. 修改 docker-compose.yml 中的数据库和 Redis 配置[1]
    3. 启动容器:
      docker-compose up -d
      

    开发技巧

    • 调试优化:
      • 使用 P6Spy 监控 SQL 性能[4]
      • 集成 Crane4j 实现数据联表自动填充[4]
    • 规范检查:
      • 遵循阿里巴巴 Java 开发规范,注释覆盖率 >45%[3]
      • 前端采用 TypeScript 严格类型检查[4]。

    如需扩展功能,可参考项目文档或通过社区贡献代码[4][7]。

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.