1. 程式人生 > 其它 >2021SpringBoot+Vue3實戰開發線上辦公系統 網盤完整

2021SpringBoot+Vue3實戰開發線上辦公系統 網盤完整

Spring Boot + Vue3 前後端分離系統搭建

實現真正的前後端解耦。

核心思想是前端html頁面通過ajax呼叫後端的restuful api介面並使用json資料進行互動。

前後端分離會為以後的大型分散式架構、彈性計算架構、微服務架構、多端化服務(多種客戶端,例如:瀏覽器,安卓,IOS等等)打下堅實的基礎。

server:
  port: 8880 #埠號
spring:
    datasource:
        name: zksdb #資料庫名稱
        type: com.alibaba.druid.pool.DruidDataSource
        #druid相關配置
        druid:
          #監控統計攔截的filters
          filters: stat
          driver-class-name: com.mysql.jdbc.Driver
          #基本屬性
          url: jdbc:mysql://127.0.0.1:3306/zksdb?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true
          username: root
          password: 123456
          #配置初始化大小/最小/最大
          initial-size: 1
          min-idle: 1
          max-active: 20
          #獲取連線等待超時時間
          max-wait: 60000
          #間隔多久進行一次檢測,檢測需要關閉的空閒連線
          time-between-eviction-runs-millis: 60000
          #一個連線在池中最小生存的時間
          min-evictable-idle-time-millis: 300000
          validation-query: SELECT 'x'
          test-while-idle: true
          test-on-borrow: false
          test-on-return: false
          #開啟PSCache,並指定每個連線上PSCache的大小。oracle設為true,mysql設為false。分庫分表較多推薦設定為false
          pool-prepared-statements: false
          max-pool-prepared-statement-per-connection-size: 20
// 該配置節點為獨立的節點,有很多同學容易將這個配置放在spring的節點下,導致配置無法被識別
mybatis:
  mapper-locations: classpath:mapper/*.xml  #注意:一定要對應mapper對映xml檔案的所在路徑
  type-aliases-package: com.winterchen.model  # 注意:對應實體類的路徑
 
#pagehelper
pagehelper:
    helperDialect: mysql
    reasonable: true
    supportMethodsArguments: true
    params: count=countSql

SpringBoot+Vue3實戰開發線上辦公系統

管理員檢視和釋出新專案,交給專案負責人(專案經理)負責。

專案負責人分配專案任務給普通員工,更改專案內容,更改任務內容,取消任務。

普通員工提交專案任務,檢視新任務。

package com.ycu.service;

import com.ycu.pojo.notice;
import com.ycu.status.systemResult;

import java.util.List;

public interface noticeService
{
    //發公告
    systemResult insertNotice(notice notice);

    //刪除公告
    systemResult deleteNotice(String  nid);

    //編輯公告
    systemResult updateNotice(notice notice);

    //修改閱讀等級
    systemResult UpdateNoticeRoot(String  nroot, String  nid);

    //查詢所有公告(管理員)
    systemResult selectAllNotice();

    //增加閱讀量
    systemResult InsertReadCount( String  nid);

    //檢視公告(自己能看到的)
    systemResult selectNoticeById(String userId);

    //檢視某個公告
    systemResult selectOneNotice(String id);
}

連結: https://pan.baidu.com/s/1Qq3FAqzkmakso2E7KuxvVg 提取碼: kczq
作者-\/ 307570512