最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

創(chuàng)建MyBatis-Plus版的后端查詢項目過程

 更新時間:2025年08月12日 09:26:51   作者:22:30Plane-Moon  
這篇文章主要介紹了創(chuàng)建MyBatis-Plus版的后端查詢項目過程,具有很好的參考價值,希望對大家有所幫助,如有錯誤或未考慮完全的地方,望不吝賜教

記得編碼和maven庫的檢測?。?!

1、maven庫導(dǎo)入包

		<dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>
        <dependency>
            <groupId>org.mybatis.spring.boot</groupId>
            <artifactId>mybatis-spring-boot-starter</artifactId>
            <version>3.0.5</version>
        </dependency>
        <dependency>
            <groupId>com.baomidou</groupId>
            <artifactId>mybatis-plus-spring-boot3-starter</artifactId>
            <version>3.5.12</version>
        </dependency>
        <!-- https://mvnrepository.com/artifact/com.baomidou/mybatis-plus-jsqlparser -->
        <dependency>
            <groupId>com.baomidou</groupId>
            <artifactId>mybatis-plus-jsqlparser</artifactId>
            <version>3.5.12</version>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-devtools</artifactId>
            <scope>runtime</scope>
            <optional>true</optional>
        </dependency>
        <dependency>
            <groupId>com.mysql</groupId>
            <artifactId>mysql-connector-j</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
            <optional>true</optional>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>

2、配置文件

spring:
  application:
    name: crm2026

  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
    username: root
    password: 123456
    url: jdbc:mysql://localhost:3306/demo02?characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true

mybatis-plus:
  configuration:
    log-prefix: mybatis.
    log-impl: org.apache.ibatis.logging.commons.JakartaCommonsLoggingImpl
    map-underscore-to-camel-case: true
    lazy-loading-enabled: true
  type-aliases-package: com.situ.crm2026.model
  mapper-locations: classpath*:/mapper/**/*.xml

server:
  port: 8080

logging:
  level:
    mybatis: debug

3、必要類

1、實體類

2、創(chuàng)建時間那、創(chuàng)建者啊,這些不變的數(shù)據(jù)單獨封裝

3、較為簡單的 響應(yīng) 封裝類

4、后端傳來時間范圍時,用這個接受處理,而且繼承了基礎(chǔ)實體類

4、邏輯方面

1、dao層

要想成功分頁,還需對分頁功能進行配置

2、Service接口

3、api接口層

總結(jié)

以上為個人經(jīng)驗,希望能給大家一個參考,也希望大家多多支持腳本之家。

相關(guān)文章

最新評論

大关县| 巴里| 宁波市| 云霄县| 绵竹市| 汉寿县| 慈利县| 海城市| 出国| 甘谷县| 青川县| 江门市| 信丰县| 巴彦县| 达日县| 威海市| 昔阳县| 石河子市| 甘谷县| 东阳市| 祥云县| 白山市| 罗山县| 唐山市| 泉州市| 天气| 霍山县| 锡林浩特市| 双辽市| 安陆市| 名山县| 潞城市| 汶上县| 宁远县| 华蓥市| 昌江| 忻州市| 贡山| 台州市| 林口县| 襄垣县|