boot/boot.asm

本文详细解析了一个BootSector启动过程的实现细节,包括如何搜索指定文件、读取扇区及处理FAT表等关键技术点。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

;By Marcus Xing
;boot/boot.asm,程序必须小于等于510字节
;加载LOADER.BIN,并把控制权交给LOADER

;----------------------------------------------------------------------调试的预处理

;%define _BOOT_DEBUG_   ; 做 Boot Sector 时一定将此行注释掉!
                        ; 将此行打开后用 nasm Boot.asm -o Boot.com 做成一个.COM文件易于调试

%ifdef _BOOT_DEBUG_
 org  0100h             ; 调试状态, 做成 .COM 文件, 可调试
%else
 org  07c00h            ; Boot 状态, Bios 将把 Boot Sector 加载到 0:7C00 处并开始执行
%endif

;------------------------------------------------------------------------软盘头信息
 jmp short LABEL_START  ; Start to boot.
 nop                           ; 这个 nop 不可少

 ; 下面是 FAT12 磁盘的头
 BS_OEMName     db 'MarcusX '  ; OEM String, 必须 8 个字节
 BPB_BytsPerSec dw 512         ; 每扇区字节数
 BPB_SecPerClus db 1           ; 每簇多少扇区
 BPB_RsvdSecCnt dw 1           ; Boot 记录占用多少扇区
 BPB_NumFATs    db 2           ; 共有多少 FAT 表
 BPB_RootEntCnt dw 224         ; 根目录文件数最大值
 BPB_TotSec16   dw 2880        ; 逻辑扇区总数
 BPB_Media      db 0xF0        ; 媒体描述符
 BPB_FATSz16    dw 9           ; 每FAT扇区数
 BPB_SecPerTrk  dw 18          ; 每磁道扇区数
 BPB_NumHeads   dw 2           ; 磁头数(面数)
 BPB_HiddSec    dd 0           ; 隐藏扇区数
 BPB_TotSec32   dd 0           ; wTotalSectorCount为0时这个值记录扇区数
 BS_DrvNum      db 0           ; 中断 13 的驱动器号
 BS_Reserved1   db 0           ; 未使用
 BS_BootSig   db 29h           ; 扩展引导标记 (29h)
 BS_VolID    dd 0              ; 卷序列号
 BS_VolLab    dd 'MarcusOs0.2' ; 卷标, 必须 11 个字节
 BS_FileSysType db 'FAT12   '  ; 文件系统类型, 必须 8个字节 
 
;-------------------------------------------------------------------------宏信息
 Base_Of_Loader  equ 9000h     ;加载LOADER的段地址
 Offset_Of_Loader equ 0100h    ;加载LOADER的偏移地址
 
 Root_Dir_Begin_Sector equ 19  ;根目录区的逻辑起始逻辑扇区

;-------------------------------------------------------------------CODE_SEGMENT
LABEL_START:
 mov ax,cs
 mov ds,ax
 mov ss,ax
 mov sp,7c00h 
 
 ;清屛
 mov ax,0600h
 mov bx,0700h
 xor cx,cx
 mov dx,0184fh
 int 10h 
  
 ;显示字符串Booting
 push _sz_Booting_Message
 call Disp_Str_In_Real_Mode
 add sp,2
 
 ;es指向缓冲区的段地址
 mov ax,Base_Of_Loader
 mov es,ax
 
LABEL_READ_NEXT_SECTOR:
 mov bx,Offset_Of_Loader                    ;bx指向缓冲区的偏移地址
 cmp byte [_b_Root_Dir_Search_For_Loop],0   ;比较循环变量是否为0
 je LABEL_NO_FOUND                          ;为0代表没找到,跳转到相应的标号处理
 dec byte [_b_Root_Dir_Search_For_Loop]     ;尚未为0,循环变量自减1
 
 ;读取当前根目录区扇区至缓冲区
 push 1
 mov al,byte [_b_Root_Dir_Sector_No]
 xor ah,ah
 push ax
 call Read_Sector
 add sp,4
 
 inc byte [_b_Root_Dir_Sector_No]   ;定位到下一个根目录扇区,为下一次读做准备
 mov dx,16                          ;一个扇区有16个FCB,要循环16次
 
LABEL_GO_ON_NEXT_DIR_ITEM:
 cmp dx,0                           ;判断是否为0
 je LABEL_READ_NEXT_SECTOR          ;为0就读下一个根目录扇区
 dec dx                             ;dx自减1
 
 mov cx,11                          ;FCB中的文件名字段有11位,故循环变量为11
 mov si,_s_Name_Of_Loader           ;si定位到要比较的字符串偏移处
 
LABEL_GO_ON_CMP:
 cmp cx,0                           ;判断比较计数器是否为0,为0表示比较成功
 je LABEL_FOUNDED                   ;即找到LOADER.BIN,跳转到相应标号处理
 dec cx                             ;cx自减1
 
 mov al,[si]                        ;ds:si指向比较字符串,赋给al
 cmp al,[es:bx]                     ;es:bx指向当前FCB的文件名字段,比较两者
 je LABEL_CMP_OK                    ;比较成功则进行下一次比较
 and bx,0ffe0h                      ;不成功则把bx的低5位清零,因为一个FCB为32
 add bx,32                          ;字节,再加32则定位到下一个FCB的文件名处
 jmp LABEL_GO_ON_NEXT_DIR_ITEM      ;跳转,比较下一个FCB
 
LABEL_CMP_OK:
 ;两个串的定位器都自增1
 inc si                    
 inc bx
 jmp LABEL_GO_ON_CMP                ;跳转下一次比较
 
 ;没找到LOADER,跳转到这儿,显示完相应信息后死循环
LABEL_NO_FOUND: 
 push _sz_No_Loader_Message
 call Disp_Str_In_Real_Mode
 add sp,2
 jmp $

 ;找到了LOADER,跳转到这儿
LABEL_FOUNDED:
 and bx,0ffe0h                      ;使es:bx指向找到的LOADER的FCB的起始处
 mov cx,[es:bx + 1ah]               ;取得LOADER的相对于数据区的偏移扇区号
                                    ;注意:2为数据区的第一个扇区
                        
 mov ax,cx                   
 mov bx,Offset_Of_Loader            ;es:bx=9000h:0100h,准备读入一个数据扇区
 
LABEL_GO_ON_LOADING:
 ;每从数据区读一个扇区则显示一个点
 push _sz_Dot
 call Disp_Str_In_Real_Mode
 add sp,2

 add ax,31                          ;得到要读取的数据扇区的逻辑地址
 
 ;读一个数据扇区
 push 1
 push ax
 call Read_Sector
 add sp,4
 
 ;得到当前数据扇区在FAT中的值
 push cx
 call Get_FAT_Entry
 add sp,2
 
 ;判断有没有下一个扇区,有则根据得到的下一个数据相对扇区号继续读
 ;没有则可以跳转到LOADER了
 cmp ax,0fffh
 je LABEL_START_LOADING
 
 add bx,512                         ;定位LOADER的加载偏移地址
 mov cx,ax
 jmp LABEL_GO_ON_LOADING            ;跳转回去进行相应处理
 
 ;LOADER数据全部加载完毕后跳转到此
LABEL_START_LOADING:
 ;打印准备信息
 push _sz_Ready_Message
 call Disp_Str_In_Real_Mode
 add sp,2
 
 ;正式跳转到LOADER!
 jmp Base_Of_Loader:Offset_Of_Loader

;-------------------------------------------------------------------DATA_SECTION
LABEL_DATA:
 _b_Root_Dir_Sector_No       db Root_Dir_Begin_Sector  ;根目录区起始逻辑扇区
 _b_Root_Dir_Search_For_Loop db 14                     ;找LOADER循环次数,就
                                                       ;是根目录区扇区个数
 _b_Is_Odd           db 0                              ;FAT ENTRY逻辑地址的奇或偶
 _w_Disp_Pos         dw 0                              ;显示地址
 
 ;一些用到的串
 _sz_Booting_Message     db 'Booting',0      
 _sz_Ready_Message       db 'Ready',0
 _sz_No_Loader_Message   db 'NoLoader',0
 _sz_Dot                 db '.',0

 _s_Name_Of_Loader       db 'LOADER  BIN'

;--------------------------------------------------------------------Read_Sector
Read_Sector:
;C函数原型(实模式下调用,短调用):
;void Read_Sector(byte16 first_sector_index,byte16 read_sector_number);
;注意:
;调用前es:bx必须指向缓冲区,ds指向数据区
;逻辑扇区号转化为系统调用所需参数的公式如下:
;相对扇区号/每磁道扇区号(18)的商Q,余数R
;其中:柱面号=Q>>1,磁头号=Q&1,相对起始扇区号=R+1

;对应的系统调用API如下:
;功能号ah=02
;hal=要读的扇区数
;ch=柱面(磁道)号
;cl=起始扇区号
;dh=磁头号,dl=驱动器号(0表示A盘)
;es:bx缓冲区地址

 push bp
 mov bp,sp
 push ax
 push bx
 push cx
 push dx
 
 push bx             ;暂存缓冲区偏移
 mov ax,[bp + 6]     ;取得要读取的扇区数
 push ax             ;暂时保存之
 mov ax,[bp + 4]     ;取得要读的逻辑扇区号
 mov bl,[BPB_SecPerTrk] 
 div bl              ;除以每柱面扇区数
 mov ch,al        
 shr ch,1            ;ch<-柱面号
 mov dh,al
 and dh,1            ;dh<-磁头号
 mov cl,ah
 inc cl              ;cl<-相对扇区号
 mov dl,0            ;读A盘
 pop ax              ;al<-要读的扇区数
 pop bx              ;恢复缓冲区偏移
 
.Go_On_Reading:
 mov ah,2            ;ah<-功能号
 int 13h
 jc .Go_On_Reading   ;如果cf=1,继续读
 
 pop dx
 pop cx
 pop bx
 pop ax
 
 pop bp
 ret
;------------------------------------------------------------------Get_FAT_Entry
Get_FAT_Entry:
;C函数原型(实模式下调用,短调用):
;u16 Get_FAT_Entry(u16 Sector_No_In_Data_Area);
;功能:
;入口参数为数据区的相对扇区号,返回值为相应的FAT的值,以表示还有没有下一个扇区
;ds指向数据区,在此函数中,es:bx=9000h-100h:0用来作为读FAT的缓冲区
 push bp
 mov bp,sp

 push bx
 push dx
 push es
 
 mov byte [_b_Is_Odd],0   ;作用为局部变量,标记相对FAT的条目索引
 
 ;es指向9000h-100h
 mov ax,Base_Of_Loader
 sub ax,100h
 mov es,ax
 
 ;1个FAT条目为12位,条目索引*3/2 = *1.5
 ;ax为相对FAT字节偏移
 mov ax,[bp + 4]
 mov bx,3
 mul bx
 mov bx,2
 div bx
 
 ;判断余数是否为0,是的话为偶,跳转到
 ;对应标号,否的话把标记变量置1
 cmp dx,0
 je LABEL_EVEN
 mov byte [_b_Is_Odd],1
 
LABEL_EVEN:
 ;ax=当前条目在FAT的相对逻辑偏移扇区
 ;dx=当前条目相对当前扇区的字节偏移
 xor dx,dx
 mov bx,512
 div bx
 
 add ax,1                 ;ax自增1,求得相对整个软盘的逻辑扇区偏移
 
 ;读2个FAT扇区到缓冲区,一次读2个,
 ;因为FAT条目可能跨越2个扇区
 xor bx,bx
 push 2
 push ax
 call Read_Sector
 add sp,4

 mov bx,dx                ;es:bx指向要求的条目首字节
 mov ax,[es:bx]           ;把首字节存到ax
 cmp byte [_b_Is_Odd],1   ;判断奇偶,奇偶有不同的处理方式
 jne LABEL_EVEN2
 shr ax,4                 ;奇数的处理方式
 
LABEL_EVEN2:              ;偶数的处理方式
 and ax,0fffh             ;返回值放到ax中
 
LABEL_DONE:
 pop es
 pop dx
 pop bx

 pop bp
 ret
;----------------------------------------------------------Disp_Str_In_Real_Mode
Disp_Str_In_Real_Mode:
;C函数原型(实模式下调用,短调用):
;void Disp_Str_In_Real_Mode(const char *p_sz_Str);
;注意:
;在变量_w_Disp_Pos处显示字符串,ds指向数据区,es的值在此函数中指向数据区
 push bp
 mov bp,sp
 
 push ax
 push bx
 push cx
 push dx
 push di
 push es
 
;此BIOS中断API
;功能13H
;功能描述:在Teletype模式下显示字符串
;入口参数:AH=13H
;BH=页码
;BL=属性(若AL=00H或01H)
;CX=显示字符串长度
;(DH、DL)=坐标(行、列)
;ES:BP=显示字符串的地址 AL=显示输出方式
;0——字符串中只含显示字符,其显示属性在BL中。显示后,光标位置不变
;1——字符串中只含显示字符,其显示属性在BL中。显示后,光标位置改变
;2——字符串中含显示字符和显示属性。显示后,光标位置不变
;3——字符串中含显示字符和显示属性。显示后,光标位置改变
;出口参数:无

 mov ax,ds
 mov es,ax 
 mov bp,[bp + 4]       ;取得要打印的字符串指针
 
 mov ax,[_w_Disp_Pos]  ;得到显示地址
 mov bl,80
 div bl
 mov dh,al             ;dh<-行号
 mov dl,ah             ;dl<-列号
 
 xor cx,cx             ;字符串长度计数器
 mov di,bp             ;做临时指针es:di指向字符串
 
.1:
 mov al,byte [es:di]
 cmp al,0              ;遇到0计数结束
 je .2
 inc cx                ;计数器自增1
 inc di                ;临时指针自增1
 jmp .1

.2:
 add word [_w_Disp_Pos],cx ;显示地址加上字符串长度
 mov bx,0007h              ;bh表示第0页,bl表示字符颜色
 mov ax,1301h              ;al为输出方式1
 
 int 10h
 
 pop es
 pop di
 pop dx
 pop cx
 pop bx
 pop ax
 
 pop bp
 ret
 
 times 510 - ($ - $$) db 0
 dw 0aa55h                 ;引导扇区最后两个字节以0xaa55结束
 

/Users/syd/Library/Java/JavaVirtualMachines/ms-17.0.14/Contents/Home/bin/java -XX:TieredStopAtLevel=1 -Dspring.profiles.active=local -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true -Dmanagement.endpoints.jmx.exposure.include=* -javaagent:/Applications/IntelliJ IDEA.app/Contents/lib/idea_rt.jar=54141 -Dfile.encoding=UTF-8 -classpath /Users/syd/Desktop/Project/SpringCloud/黑马商城/hmall/cart-service/target/classes:/Users/syd/.m2/repository/com/alibaba/cloud/spring-cloud-starter-alibaba-nacos-config/2021.0.4.0/spring-cloud-starter-alibaba-nacos-config-2021.0.4.0.jar:/Users/syd/.m2/repository/com/alibaba/cloud/spring-cloud-alibaba-commons/2021.0.4.0/spring-cloud-alibaba-commons-2021.0.4.0.jar:/Users/syd/.m2/repository/com/alibaba/spring/spring-context-support/1.0.11/spring-context-support-1.0.11.jar:/Users/syd/.m2/repository/com/alibaba/nacos/nacos-client/2.0.4/nacos-client-2.0.4.jar:/Users/syd/.m2/repository/commons-codec/commons-codec/1.15/commons-codec-1.15.jar:/Users/syd/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.13.5/jackson-core-2.13.5.jar:/Users/syd/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.13.5/jackson-databind-2.13.5.jar:/Users/syd/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.13.5/jackson-annotations-2.13.5.jar:/Users/syd/.m2/repository/org/apache/httpcomponents/httpasyncclient/4.1.5/httpasyncclient-4.1.5.jar:/Users/syd/.m2/repository/org/apache/httpcomponents/httpcore/4.4.16/httpcore-4.4.16.jar:/Users/syd/.m2/repository/org/apache/httpcomponents/httpcore-nio/4.4.16/httpcore-nio-4.4.16.jar:/Users/syd/.m2/repository/org/apache/httpcomponents/httpclient/4.5.14/httpclient-4.5.14.jar:/Users/syd/.m2/repository/org/reflections/reflections/0.9.11/reflections-0.9.11.jar:/Users/syd/.m2/repository/com/google/guava/guava/20.0/guava-20.0.jar:/Users/syd/.m2/repository/io/prometheus/simpleclient/0.15.0/simpleclient-0.15.0.jar:/Users/syd/.m2/repository/io/prometheus/simpleclient_tracer_otel/0.15.0/simpleclient_tracer_otel-0.15.0.jar:/Users/syd/.m2/repository/io/prometheus/simpleclient_tracer_common/0.15.0/simpleclient_tracer_common-0.15.0.jar:/Users/syd/.m2/repository/io/prometheus/simpleclient_tracer_otel_agent/0.15.0/simpleclient_tracer_otel_agent-0.15.0.jar:/Users/syd/.m2/repository/org/yaml/snakeyaml/1.30/snakeyaml-1.30.jar:/Users/syd/.m2/repository/org/springframework/cloud/spring-cloud-commons/3.1.3/spring-cloud-commons-3.1.3.jar:/Users/syd/.m2/repository/org/springframework/security/spring-security-crypto/5.7.8/spring-security-crypto-5.7.8.jar:/Users/syd/.m2/repository/org/springframework/cloud/spring-cloud-context/3.1.3/spring-cloud-context-3.1.3.jar:/Users/syd/.m2/repository/org/slf4j/slf4j-api/1.7.36/slf4j-api-1.7.36.jar:/Users/syd/.m2/repository/org/springframework/cloud/spring-cloud-starter-bootstrap/3.1.3/spring-cloud-starter-bootstrap-3.1.3.jar:/Users/syd/.m2/repository/org/springframework/cloud/spring-cloud-starter/3.1.3/spring-cloud-starter-3.1.3.jar:/Users/syd/.m2/repository/org/springframework/security/spring-security-rsa/1.0.10.RELEASE/spring-security-rsa-1.0.10.RELEASE.jar:/Users/syd/.m2/repository/org/bouncycastle/bcpkix-jdk15on/1.68/bcpkix-jdk15on-1.68.jar:/Users/syd/.m2/repository/org/bouncycastle/bcprov-jdk15on/1.68/bcprov-jdk15on-1.68.jar:/Users/syd/Desktop/Project/SpringCloud/黑马商城/hmall/hm-api/target/classes:/Users/syd/.m2/repository/io/github/openfeign/feign-okhttp/11.8/feign-okhttp-11.8.jar:/Users/syd/.m2/repository/io/github/openfeign/feign-core/11.8/feign-core-11.8.jar:/Users/syd/.m2/repository/com/squareup/okhttp3/okhttp/4.9.3/okhttp-4.9.3.jar:/Users/syd/.m2/repository/com/squareup/okio/okio/2.8.0/okio-2.8.0.jar:/Users/syd/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib-common/1.6.21/kotlin-stdlib-common-1.6.21.jar:/Users/syd/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib/1.6.21/kotlin-stdlib-1.6.21.jar:/Users/syd/.m2/repository/org/jetbrains/annotations/13.0/annotations-13.0.jar:/Users/syd/.m2/repository/org/springframework/cloud/spring-cloud-starter-openfeign/3.1.3/spring-cloud-starter-openfeign-3.1.3.jar:/Users/syd/.m2/repository/org/springframework/cloud/spring-cloud-openfeign-core/3.1.3/spring-cloud-openfeign-core-3.1.3.jar:/Users/syd/.m2/repository/org/springframework/boot/spring-boot-starter-aop/2.7.12/spring-boot-starter-aop-2.7.12.jar:/Users/syd/.m2/repository/org/aspectj/aspectjweaver/1.9.7/aspectjweaver-1.9.7.jar:/Users/syd/.m2/repository/io/github/openfeign/form/feign-form-spring/3.8.0/feign-form-spring-3.8.0.jar:/Users/syd/.m2/repository/io/github/openfeign/form/feign-form/3.8.0/feign-form-3.8.0.jar:/Users/syd/.m2/repository/commons-fileupload/commons-fileupload/1.4/commons-fileupload-1.4.jar:/Users/syd/.m2/repository/commons-io/commons-io/2.2/commons-io-2.2.jar:/Users/syd/.m2/repository/org/springframework/spring-web/5.3.27/spring-web-5.3.27.jar:/Users/syd/.m2/repository/org/springframework/spring-beans/5.3.27/spring-beans-5.3.27.jar:/Users/syd/.m2/repository/io/github/openfeign/feign-slf4j/11.8/feign-slf4j-11.8.jar:/Users/syd/.m2/repository/com/alibaba/cloud/spring-cloud-starter-alibaba-nacos-discovery/2021.0.4.0/spring-cloud-starter-alibaba-nacos-discovery-2021.0.4.0.jar:/Users/syd/.m2/repository/org/springframework/cloud/spring-cloud-starter-loadbalancer/3.1.3/spring-cloud-starter-loadbalancer-3.1.3.jar:/Users/syd/.m2/repository/org/springframework/cloud/spring-cloud-loadbalancer/3.1.3/spring-cloud-loadbalancer-3.1.3.jar:/Users/syd/.m2/repository/io/projectreactor/reactor-core/3.4.29/reactor-core-3.4.29.jar:/Users/syd/.m2/repository/org/reactivestreams/reactive-streams/1.0.4/reactive-streams-1.0.4.jar:/Users/syd/.m2/repository/io/projectreactor/addons/reactor-extra/3.4.10/reactor-extra-3.4.10.jar:/Users/syd/.m2/repository/org/springframework/boot/spring-boot-starter-cache/2.7.12/spring-boot-starter-cache-2.7.12.jar:/Users/syd/.m2/repository/org/springframework/spring-context-support/5.3.27/spring-context-support-5.3.27.jar:/Users/syd/.m2/repository/com/stoyanr/evictor/1.0.0/evictor-1.0.0.jar:/Users/syd/Desktop/Project/SpringCloud/黑马商城/hmall/hm-common/target/classes:/Users/syd/.m2/repository/org/apache/commons/commons-pool2/2.11.1/commons-pool2-2.11.1.jar:/Users/syd/.m2/repository/cn/hutool/hutool-all/5.8.11/hutool-all-5.8.11.jar:/Users/syd/.m2/repository/org/springframework/boot/spring-boot-starter-logging/2.7.12/spring-boot-starter-logging-2.7.12.jar:/Users/syd/.m2/repository/ch/qos/logback/logback-classic/1.2.12/logback-classic-1.2.12.jar:/Users/syd/.m2/repository/ch/qos/logback/logback-core/1.2.12/logback-core-1.2.12.jar:/Users/syd/.m2/repository/org/apache/logging/log4j/log4j-to-slf4j/2.17.2/log4j-to-slf4j-2.17.2.jar:/Users/syd/.m2/repository/org/apache/logging/log4j/log4j-api/2.17.2/log4j-api-2.17.2.jar:/Users/syd/.m2/repository/org/slf4j/jul-to-slf4j/1.7.36/jul-to-slf4j-1.7.36.jar:/Users/syd/.m2/repository/org/hibernate/validator/hibernate-validator/6.2.5.Final/hibernate-validator-6.2.5.Final.jar:/Users/syd/.m2/repository/jakarta/validation/jakarta.validation-api/2.0.2/jakarta.validation-api-2.0.2.jar:/Users/syd/.m2/repository/org/jboss/logging/jboss-logging/3.4.3.Final/jboss-logging-3.4.3.Final.jar:/Users/syd/.m2/repository/com/fasterxml/classmate/1.5.1/classmate-1.5.1.jar:/Users/syd/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/2.7.12/spring-boot-autoconfigure-2.7.12.jar:/Users/syd/.m2/repository/org/springframework/boot/spring-boot/2.7.12/spring-boot-2.7.12.jar:/Users/syd/.m2/repository/com/github/xiaoymin/knife4j-openapi2-spring-boot-starter/4.1.0/knife4j-openapi2-spring-boot-starter-4.1.0.jar:/Users/syd/.m2/repository/com/github/xiaoymin/knife4j-core/4.1.0/knife4j-core-4.1.0.jar:/Users/syd/.m2/repository/com/github/xiaoymin/knife4j-openapi2-ui/4.1.0/knife4j-openapi2-ui-4.1.0.jar:/Users/syd/.m2/repository/org/javassist/javassist/3.25.0-GA/javassist-3.25.0-GA.jar:/Users/syd/.m2/repository/io/springfox/springfox-swagger2/2.10.5/springfox-swagger2-2.10.5.jar:/Users/syd/.m2/repository/io/springfox/springfox-spi/2.10.5/springfox-spi-2.10.5.jar:/Users/syd/.m2/repository/io/springfox/springfox-core/2.10.5/springfox-core-2.10.5.jar:/Users/syd/.m2/repository/io/springfox/springfox-schema/2.10.5/springfox-schema-2.10.5.jar:/Users/syd/.m2/repository/io/springfox/springfox-swagger-common/2.10.5/springfox-swagger-common-2.10.5.jar:/Users/syd/.m2/repository/io/springfox/springfox-spring-web/2.10.5/springfox-spring-web-2.10.5.jar:/Users/syd/.m2/repository/io/github/classgraph/classgraph/4.1.7/classgraph-4.1.7.jar:/Users/syd/.m2/repository/org/springframework/plugin/spring-plugin-core/2.0.0.RELEASE/spring-plugin-core-2.0.0.RELEASE.jar:/Users/syd/.m2/repository/org/springframework/plugin/spring-plugin-metadata/2.0.0.RELEASE/spring-plugin-metadata-2.0.0.RELEASE.jar:/Users/syd/.m2/repository/org/mapstruct/mapstruct/1.3.1.Final/mapstruct-1.3.1.Final.jar:/Users/syd/.m2/repository/io/swagger/swagger-models/1.6.6/swagger-models-1.6.6.jar:/Users/syd/.m2/repository/io/swagger/swagger-annotations/1.6.6/swagger-annotations-1.6.6.jar:/Users/syd/.m2/repository/io/springfox/springfox-bean-validators/2.10.5/springfox-bean-validators-2.10.5.jar:/Users/syd/.m2/repository/io/springfox/springfox-spring-webmvc/2.10.5/springfox-spring-webmvc-2.10.5.jar:/Users/syd/.m2/repository/com/github/ben-manes/caffeine/caffeine/2.9.3/caffeine-2.9.3.jar:/Users/syd/.m2/repository/org/checkerframework/checker-qual/3.19.0/checker-qual-3.19.0.jar:/Users/syd/.m2/repository/com/google/errorprone/error_prone_annotations/2.10.0/error_prone_annotations-2.10.0.jar:/Users/syd/.m2/repository/org/springframework/boot/spring-boot-starter-web/2.7.12/spring-boot-starter-web-2.7.12.jar:/Users/syd/.m2/repository/org/springframework/boot/spring-boot-starter/2.7.12/spring-boot-starter-2.7.12.jar:/Users/syd/.m2/repository/jakarta/annotation/jakarta.annotation-api/1.3.5/jakarta.annotation-api-1.3.5.jar:/Users/syd/.m2/repository/org/springframework/boot/spring-boot-starter-json/2.7.12/spring-boot-starter-json-2.7.12.jar:/Users/syd/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jdk8/2.13.5/jackson-datatype-jdk8-2.13.5.jar:/Users/syd/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jsr310/2.13.5/jackson-datatype-jsr310-2.13.5.jar:/Users/syd/.m2/repository/com/fasterxml/jackson/module/jackson-module-parameter-names/2.13.5/jackson-module-parameter-names-2.13.5.jar:/Users/syd/.m2/repository/org/springframework/boot/spring-boot-starter-tomcat/2.7.12/spring-boot-starter-tomcat-2.7.12.jar:/Users/syd/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/9.0.75/tomcat-embed-core-9.0.75.jar:/Users/syd/.m2/repository/org/apache/tomcat/embed/tomcat-embed-el/9.0.75/tomcat-embed-el-9.0.75.jar:/Users/syd/.m2/repository/org/apache/tomcat/embed/tomcat-embed-websocket/9.0.75/tomcat-embed-websocket-9.0.75.jar:/Users/syd/.m2/repository/org/springframework/spring-webmvc/5.3.27/spring-webmvc-5.3.27.jar:/Users/syd/.m2/repository/org/springframework/spring-aop/5.3.27/spring-aop-5.3.27.jar:/Users/syd/.m2/repository/org/springframework/spring-context/5.3.27/spring-context-5.3.27.jar:/Users/syd/.m2/repository/org/springframework/spring-expression/5.3.27/spring-expression-5.3.27.jar:/Users/syd/.m2/repository/mysql/mysql-connector-java/8.0.23/mysql-connector-java-8.0.23.jar:/Users/syd/.m2/repository/com/google/protobuf/protobuf-java/3.11.4/protobuf-java-3.11.4.jar:/Users/syd/.m2/repository/com/baomidou/mybatis-plus-boot-starter/3.4.3/mybatis-plus-boot-starter-3.4.3.jar:/Users/syd/.m2/repository/com/baomidou/mybatis-plus/3.4.3/mybatis-plus-3.4.3.jar:/Users/syd/.m2/repository/com/baomidou/mybatis-plus-extension/3.4.3/mybatis-plus-extension-3.4.3.jar:/Users/syd/.m2/repository/com/baomidou/mybatis-plus-core/3.4.3/mybatis-plus-core-3.4.3.jar:/Users/syd/.m2/repository/com/baomidou/mybatis-plus-annotation/3.4.3/mybatis-plus-annotation-3.4.3.jar:/Users/syd/.m2/repository/com/github/jsqlparser/jsqlparser/4.0/jsqlparser-4.0.jar:/Users/syd/.m2/repository/org/mybatis/mybatis/3.5.7/mybatis-3.5.7.jar:/Users/syd/.m2/repository/org/mybatis/mybatis-spring/2.0.6/mybatis-spring-2.0.6.jar:/Users/syd/.m2/repository/org/springframework/boot/spring-boot-starter-jdbc/2.7.12/spring-boot-starter-jdbc-2.7.12.jar:/Users/syd/.m2/repository/com/zaxxer/HikariCP/4.0.3/HikariCP-4.0.3.jar:/Users/syd/.m2/repository/org/springframework/spring-jdbc/5.3.27/spring-jdbc-5.3.27.jar:/Users/syd/.m2/repository/org/springframework/boot/spring-boot-starter-test/2.7.12/spring-boot-starter-test-2.7.12.jar:/Users/syd/.m2/repository/org/springframework/boot/spring-boot-test/2.7.12/spring-boot-test-2.7.12.jar:/Users/syd/.m2/repository/org/springframework/boot/spring-boot-test-autoconfigure/2.7.12/spring-boot-test-autoconfigure-2.7.12.jar:/Users/syd/.m2/repository/com/jayway/jsonpath/json-path/2.7.0/json-path-2.7.0.jar:/Users/syd/.m2/repository/net/minidev/json-smart/2.4.11/json-smart-2.4.11.jar:/Users/syd/.m2/repository/net/minidev/accessors-smart/2.4.11/accessors-smart-2.4.11.jar:/Users/syd/.m2/repository/org/ow2/asm/asm/9.3/asm-9.3.jar:/Users/syd/.m2/repository/jakarta/xml/bind/jakarta.xml.bind-api/2.3.3/jakarta.xml.bind-api-2.3.3.jar:/Users/syd/.m2/repository/jakarta/activation/jakarta.activation-api/1.2.2/jakarta.activation-api-1.2.2.jar:/Users/syd/.m2/repository/org/assertj/assertj-core/3.22.0/assertj-core-3.22.0.jar:/Users/syd/.m2/repository/org/hamcrest/hamcrest/2.2/hamcrest-2.2.jar:/Users/syd/.m2/repository/org/junit/jupiter/junit-jupiter/5.8.2/junit-jupiter-5.8.2.jar:/Users/syd/.m2/repository/org/junit/jupiter/junit-jupiter-api/5.8.2/junit-jupiter-api-5.8.2.jar:/Users/syd/.m2/repository/org/opentest4j/opentest4j/1.2.0/opentest4j-1.2.0.jar:/Users/syd/.m2/repository/org/junit/platform/junit-platform-commons/1.8.2/junit-platform-commons-1.8.2.jar:/Users/syd/.m2/repository/org/apiguardian/apiguardian-api/1.1.2/apiguardian-api-1.1.2.jar:/Users/syd/.m2/repository/org/junit/jupiter/junit-jupiter-params/5.8.2/junit-jupiter-params-5.8.2.jar:/Users/syd/.m2/repository/org/junit/jupiter/junit-jupiter-engine/5.8.2/junit-jupiter-engine-5.8.2.jar:/Users/syd/.m2/repository/org/junit/platform/junit-platform-engine/1.8.2/junit-platform-engine-1.8.2.jar:/Users/syd/.m2/repository/org/mockito/mockito-core/4.5.1/mockito-core-4.5.1.jar:/Users/syd/.m2/repository/net/bytebuddy/byte-buddy/1.12.23/byte-buddy-1.12.23.jar:/Users/syd/.m2/repository/net/bytebuddy/byte-buddy-agent/1.12.23/byte-buddy-agent-1.12.23.jar:/Users/syd/.m2/repository/org/objenesis/objenesis/3.2/objenesis-3.2.jar:/Users/syd/.m2/repository/org/mockito/mockito-junit-jupiter/4.5.1/mockito-junit-jupiter-4.5.1.jar:/Users/syd/.m2/repository/org/skyscreamer/jsonassert/1.5.1/jsonassert-1.5.1.jar:/Users/syd/.m2/repository/com/vaadin/external/google/android-json/0.0.20131108.vaadin1/android-json-0.0.20131108.vaadin1.jar:/Users/syd/.m2/repository/org/springframework/spring-core/5.3.27/spring-core-5.3.27.jar:/Users/syd/.m2/repository/org/springframework/spring-jcl/5.3.27/spring-jcl-5.3.27.jar:/Users/syd/.m2/repository/org/springframework/spring-test/5.3.27/spring-test-5.3.27.jar:/Users/syd/.m2/repository/org/xmlunit/xmlunit-core/2.9.1/xmlunit-core-2.9.1.jar:/Users/syd/.m2/repository/org/springframework/boot/spring-boot-starter-data-redis/2.7.12/spring-boot-starter-data-redis-2.7.12.jar:/Users/syd/.m2/repository/org/springframework/data/spring-data-redis/2.7.12/spring-data-redis-2.7.12.jar:/Users/syd/.m2/repository/org/springframework/data/spring-data-keyvalue/2.7.12/spring-data-keyvalue-2.7.12.jar:/Users/syd/.m2/repository/org/springframework/data/spring-data-commons/2.7.12/spring-data-commons-2.7.12.jar:/Users/syd/.m2/repository/org/springframework/spring-tx/5.3.27/spring-tx-5.3.27.jar:/Users/syd/.m2/repository/org/springframework/spring-oxm/5.3.27/spring-oxm-5.3.27.jar:/Users/syd/.m2/repository/io/lettuce/lettuce-core/6.1.10.RELEASE/lettuce-core-6.1.10.RELEASE.jar:/Users/syd/.m2/repository/io/netty/netty-common/4.1.92.Final/netty-common-4.1.92.Final.jar:/Users/syd/.m2/repository/io/netty/netty-handler/4.1.92.Final/netty-handler-4.1.92.Final.jar:/Users/syd/.m2/repository/io/netty/netty-resolver/4.1.92.Final/netty-resolver-4.1.92.Final.jar:/Users/syd/.m2/repository/io/netty/netty-buffer/4.1.92.Final/netty-buffer-4.1.92.Final.jar:/Users/syd/.m2/repository/io/netty/netty-transport-native-unix-common/4.1.92.Final/netty-transport-native-unix-common-4.1.92.Final.jar:/Users/syd/.m2/repository/io/netty/netty-codec/4.1.92.Final/netty-codec-4.1.92.Final.jar:/Users/syd/.m2/repository/io/netty/netty-transport/4.1.92.Final/netty-transport-4.1.92.Final.jar:/Users/syd/.m2/repository/org/projectlombok/lombok/1.18.20/lombok-1.18.20.jar com.hmall.cart.CartApplication . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.7.12) 2025-07-23 00:46:10.823 INFO 94996 --- [ main] com.alibaba.nacos.common.remote.client : [RpcClientFactory] create a new rpc client of 02474581-6045-4ae2-bf28-5abda8e7177f_config-0 2025-07-23 00:46:10.851 INFO 94996 --- [ main] org.reflections.Reflections : Reflections took 13 ms to scan 1 urls, producing 3 keys and 6 values 2025-07-23 00:46:10.863 INFO 94996 --- [ main] org.reflections.Reflections : Reflections took 6 ms to scan 1 urls, producing 4 keys and 9 values 2025-07-23 00:46:10.868 INFO 94996 --- [ main] org.reflections.Reflections : Reflections took 4 ms to scan 1 urls, producing 3 keys and 10 values 2025-07-23 00:46:10.869 WARN 94996 --- [ main] org.reflections.Reflections : given scan urls are empty. set urls in the configuration 2025-07-23 00:46:10.873 INFO 94996 --- [ main] org.reflections.Reflections : Reflections took 4 ms to scan 1 urls, producing 1 keys and 5 values 2025-07-23 00:46:10.882 INFO 94996 --- [ main] org.reflections.Reflections : Reflections took 8 ms to scan 1 urls, producing 1 keys and 7 values 2025-07-23 00:46:10.887 INFO 94996 --- [ main] org.reflections.Reflections : Reflections took 4 ms to scan 1 urls, producing 2 keys and 8 values 2025-07-23 00:46:10.888 WARN 94996 --- [ main] org.reflections.Reflections : given scan urls are empty. set urls in the configuration 2025-07-23 00:46:10.888 INFO 94996 --- [ main] com.alibaba.nacos.common.remote.client : [02474581-6045-4ae2-bf28-5abda8e7177f_config-0] RpcClient init label, labels = {module=config, Vipserver-Tag=null, source=sdk, Amory-Tag=null, Location-Tag=null, taskId=0, AppName=unknown} 2025-07-23 00:46:10.888 INFO 94996 --- [ main] com.alibaba.nacos.common.remote.client : [02474581-6045-4ae2-bf28-5abda8e7177f_config-0] Register server push request handler:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$$Lambda$469/0x000000800139e810 2025-07-23 00:46:10.888 INFO 94996 --- [ main] com.alibaba.nacos.common.remote.client : [02474581-6045-4ae2-bf28-5abda8e7177f_config-0] Register server push request handler:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$$Lambda$470/0x000000800139ea38 2025-07-23 00:46:10.889 INFO 94996 --- [ main] com.alibaba.nacos.common.remote.client : [02474581-6045-4ae2-bf28-5abda8e7177f_config-0] Registry connection listener to current client:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$1 2025-07-23 00:46:10.889 INFO 94996 --- [ main] com.alibaba.nacos.common.remote.client : [02474581-6045-4ae2-bf28-5abda8e7177f_config-0] RpcClient init, ServerListFactory = com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$2 2025-07-23 00:46:10.892 INFO 94996 --- [ main] com.alibaba.nacos.common.remote.client : [02474581-6045-4ae2-bf28-5abda8e7177f_config-0] Try to connect to server on start up, server: {serverIp = '127.0.0.1', server main port = 8848} 2025-07-23 00:46:11.264 INFO 94996 --- [ main] com.alibaba.nacos.common.remote.client : [02474581-6045-4ae2-bf28-5abda8e7177f_config-0] Success to connect to server [127.0.0.1:8848] on start up, connectionId = 1753202771127_192.168.65.1_22625 2025-07-23 00:46:11.264 INFO 94996 --- [ main] com.alibaba.nacos.common.remote.client : [02474581-6045-4ae2-bf28-5abda8e7177f_config-0] Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$ConnectResetRequestHandler 2025-07-23 00:46:11.264 INFO 94996 --- [t.remote.worker] com.alibaba.nacos.common.remote.client : [02474581-6045-4ae2-bf28-5abda8e7177f_config-0] Notify connected event to listeners. 2025-07-23 00:46:11.265 INFO 94996 --- [ main] com.alibaba.nacos.common.remote.client : [02474581-6045-4ae2-bf28-5abda8e7177f_config-0] Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$$Lambda$481/0x00000080015077c0 2025-07-23 00:46:11.296 WARN 94996 --- [ main] c.a.c.n.c.NacosPropertySourceBuilder : Ignore the empty nacos configuration and get it based on dataId[cart-service] & group[DEFAULT_GROUP] 2025-07-23 00:46:11.301 WARN 94996 --- [ main] c.a.c.n.c.NacosPropertySourceBuilder : Ignore the empty nacos configuration and get it based on dataId[cart-service.yaml] & group[DEFAULT_GROUP] 2025-07-23 00:46:11.304 WARN 94996 --- [ main] c.a.c.n.c.NacosPropertySourceBuilder : Ignore the empty nacos configuration and get it based on dataId[cart-service-local.yaml] & group[DEFAULT_GROUP] 2025-07-23 00:46:11.305 INFO 94996 --- [ main] b.c.PropertySourceBootstrapConfiguration : Located property source: [BootstrapPropertySource {name='bootstrapProperties-cart-service-local.yaml,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-cart-service.yaml,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-cart-service,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-knife4j,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-JDBC,DEFAULT_GROUP'}] 2025-07-23 00:46:11.307 INFO 94996 --- [ main] com.hmall.cart.CartApplication : The following 1 profile is active: "local" 2025-07-23 00:46:11.594 INFO 94996 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode 2025-07-23 00:46:11.596 INFO 94996 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode. 2025-07-23 00:46:11.607 INFO 94996 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 4 ms. Found 0 Redis repository interfaces. 2025-07-23 00:46:11.708 INFO 94996 --- [ main] o.s.cloud.context.scope.GenericScope : BeanFactory id=639213e3-93fa-3eac-8cc8-3f4e5c6acd59 2025-07-23 00:46:11.910 INFO 94996 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8082 (http) 2025-07-23 00:46:11.915 INFO 94996 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] 2025-07-23 00:46:11.915 INFO 94996 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.75] 2025-07-23 00:46:11.971 INFO 94996 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext 2025-07-23 00:46:11.971 INFO 94996 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 654 ms 2025-07-23 00:46:12.049 INFO 94996 --- [ main] o.s.c.openfeign.FeignClientFactoryBean : For 'item-service' URL not provided. Will try picking an instance via load-balancing. 2025-07-23 00:46:12.183 WARN 94996 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'cartController' defined in file [/Users/syd/Desktop/Project/SpringCloud/黑马商城/hmall/cart-service/target/classes/com/hmall/cart/controller/CartController.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'cartServiceImpl': Unsatisfied dependency expressed through field 'baseMapper'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'cartMapper' defined in file [/Users/syd/Desktop/Project/SpringCloud/黑马商城/hmall/cart-service/target/classes/com/hmall/cart/mapper/CartMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/baomidou/mybatisplus/autoconfigure/MybatisPlusAutoConfiguration.class]: Unsatisfied dependency expressed through method 'sqlSessionFactory' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw exception; nested exception is org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Failed to determine a suitable driver class 2025-07-23 00:46:12.185 INFO 94996 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat] 2025-07-23 00:46:12.194 INFO 94996 --- [ main] ConditionEvaluationReportLoggingListener : Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2025-07-23 00:46:12.202 ERROR 94996 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPLICATION FAILED TO START *************************** Description: Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. Reason: Failed to determine a suitable driver class Action: Consider the following: If you want an embedded database (H2, HSQL or Derby), please put it on the classpath. If you have database settings to be loaded from a particular profile you may need to activate it (the profiles local are currently active). 2025-07-23 00:46:12.203 WARN 94996 --- [ Thread-7] c.a.nacos.common.notify.NotifyCenter : [NotifyCenter] Start destroying Publisher 2025-07-23 00:46:12.203 WARN 94996 --- [ Thread-7] c.a.nacos.common.notify.NotifyCenter : [NotifyCenter] Destruction of the end 2025-07-23 00:46:12.203 WARN 94996 --- [ Thread-1] c.a.n.common.http.HttpClientBeanHolder : [HttpClientBeanHolder] Start destroying common HttpClient 进程已结束,退出代码为 1
最新发布
07-24
cd to /kms/component/canal-admin/bin for workaround relative path CLASSPATH :/kms/component/canal-admin/bin/../conf:/kms/component/canal-admin/bin/../lib/zookeeper-3.4.5.jar:/kms/component/canal-admin/bin/../lib/zkclient-0.10.jar:/kms/component/canal-admin/bin/../lib/xmlunit-core-2.5.1.jar:/kms/component/canal-admin/bin/../lib/validation-api-2.0.1.Final.jar:/kms/component/canal-admin/bin/../lib/tomcat-embed-websocket-8.5.29.jar:/kms/component/canal-admin/bin/../lib/tomcat-embed-el-8.5.29.jar:/kms/component/canal-admin/bin/../lib/tomcat-embed-core-8.5.29.jar:/kms/component/canal-admin/bin/../lib/spring-webmvc-5.0.5.RELEASE.jar:/kms/component/canal-admin/bin/../lib/spring-web-5.0.5.RELEASE.jar:/kms/component/canal-admin/bin/../lib/spring-tx-5.0.5.RELEASE.jar:/kms/component/canal-admin/bin/../lib/spring-orm-5.0.5.RELEASE.jar:/kms/component/canal-admin/bin/../lib/spring-jdbc-5.0.5.RELEASE.jar:/kms/component/canal-admin/bin/../lib/spring-jcl-5.0.5.RELEASE.jar:/kms/component/canal-admin/bin/../lib/spring-expression-5.0.5.RELEASE.jar:/kms/component/canal-admin/bin/../lib/spring-core-5.0.5.RELEASE.jar:/kms/component/canal-admin/bin/../lib/spring-context-5.0.5.RELEASE.jar:/kms/component/canal-admin/bin/../lib/spring-boot-test-autoconfigure-2.0.1.RELEASE.jar:/kms/component/canal-admin/bin/../lib/spring-boot-test-2.0.1.RELEASE.jar:/kms/component/canal-admin/bin/../lib/spring-boot-starter-web-2.0.1.RELEASE.jar:/kms/component/canal-admin/bin/../lib/spring-boot-starter-tomcat-2.0.1.RELEASE.jar:/kms/component/canal-admin/bin/../lib/spring-boot-starter-test-2.0.1.RELEASE.jar:/kms/component/canal-admin/bin/../lib/spring-boot-starter-logging-2.0.1.RELEASE.jar:/kms/component/canal-admin/bin/../lib/spring-boot-starter-json-2.0.1.RELEASE.jar:/kms/component/canal-admin/bin/../lib/spring-boot-starter-jdbc-2.0.1.RELEASE.jar:/kms/component/canal-admin/bin/../lib/spring-boot-starter-2.0.1.RELEASE.jar:/kms/component/canal-admin/bin/../lib/spring-boot-autoconfigure-2.0.1.RELEASE.jar:/kms/component/canal-admin/bin/../lib/spring-boot-2.0.1.RELEASE.jar:/kms/component/canal-admin/bin/../lib/spring-beans-5.0.5.RELEASE.jar:/kms/component/canal-admin/bin/../lib/spring-aop-5.0.5.RELEASE.jar:/kms/component/canal-admin/bin/../lib/snakeyaml-1.19.jar:/kms/component/canal-admin/bin/../lib/slf4j-api-1.7.25.jar:/kms/component/canal-admin/bin/../lib/protobuf-java-3.6.1.jar:/kms/component/canal-admin/bin/../lib/persistence-api-2.2.2.jar:/kms/component/canal-admin/bin/../lib/objenesis-2.6.jar:/kms/component/canal-admin/bin/../lib/netty-all-4.1.23.Final.jar:/kms/component/canal-admin/bin/../lib/netty-3.2.2.Final.jar:/kms/component/canal-admin/bin/../lib/mysql-connector-java-5.1.48.jar:/kms/component/canal-admin/bin/../lib/mockito-core-2.15.0.jar:/kms/component/canal-admin/bin/../lib/logback-core-1.2.3.jar:/kms/component/canal-admin/bin/../lib/logback-classic-1.2.3.jar:/kms/component/canal-admin/bin/../lib/log4j-to-slf4j-2.10.0.jar:/kms/component/canal-admin/bin/../lib/log4j-api-2.10.0.jar:/kms/component/canal-admin/bin/../lib/jul-to-slf4j-1.7.25.jar:/kms/component/canal-admin/bin/../lib/jsr305-3.0.2.jar:/kms/component/canal-admin/bin/../lib/json-smart-2.3.jar:/kms/component/canal-admin/bin/../lib/json-path-2.4.0.jar:/kms/component/canal-admin/bin/../lib/jsonassert-1.5.0.jar:/kms/component/canal-admin/bin/../lib/jcl-over-slf4j-1.7.25.jar:/kms/component/canal-admin/bin/../lib/jboss-logging-3.3.2.Final.jar:/kms/component/canal-admin/bin/../lib/javax.annotation-api-1.3.2.jar:/kms/component/canal-admin/bin/../lib/jackson-module-parameter-names-2.9.5.jar:/kms/component/canal-admin/bin/../lib/jackson-datatype-jsr310-2.9.5.jar:/kms/component/canal-admin/bin/../lib/jackson-datatype-jdk8-2.9.5.jar:/kms/component/canal-admin/bin/../lib/jackson-databind-2.9.5.jar:/kms/component/canal-admin/bin/../lib/jackson-core-2.9.5.jar:/kms/component/canal-admin/bin/../lib/jackson-annotations-2.9.0.jar:/kms/component/canal-admin/bin/../lib/j2objc-annotations-1.1.jar:/kms/component/canal-admin/bin/../lib/HikariCP-2.7.8.jar:/kms/component/canal-admin/bin/../lib/hibernate-validator-6.0.9.Final.jar:/kms/component/canal-admin/bin/../lib/hamcrest-library-1.3.jar:/kms/component/canal-admin/bin/../lib/hamcrest-core-1.3.jar:/kms/component/canal-admin/bin/../lib/guava-22.0.jar:/kms/component/canal-admin/bin/../lib/fastjson-1.2.58.sec06.jar:/kms/component/canal-admin/bin/../lib/error_prone_annotations-2.0.18.jar:/kms/component/canal-admin/bin/../lib/ebean-types-1.3.jar:/kms/component/canal-admin/bin/../lib/ebean-migration-11.16.2.jar:/kms/component/canal-admin/bin/../lib/ebean-datasource-api-4.5.jar:/kms/component/canal-admin/bin/../lib/ebean-datasource-4.5.2.jar:/kms/component/canal-admin/bin/../lib/ebean-annotation-4.11.jar:/kms/component/canal-admin/bin/../lib/ebean-11.41.1.jar:/kms/component/canal-admin/bin/../lib/commons-logging-1.1.1.jar:/kms/component/canal-admin/bin/../lib/commons-lang-2.6.jar:/kms/component/canal-admin/bin/../lib/commons-io-2.4.jar:/kms/component/canal-admin/bin/../lib/commons-codec-1.11.jar:/kms/component/canal-admin/bin/../lib/commons-beanutils-1.8.2.jar:/kms/component/canal-admin/bin/../lib/classmate-1.3.4.jar:/kms/component/canal-admin/bin/../lib/canal.protocol-1.1.6-SNAPSHOT.jar:/kms/component/canal-admin/bin/../lib/canal.common-1.1.6-SNAPSHOT.jar:/kms/component/canal-admin/bin/../lib/canal.admin-web-1.1.6-SNAPSHOT.jar:/kms/component/canal-admin/bin/../lib/caffeine-2.6.2.jar:/kms/component/canal-admin/bin/../lib/byte-buddy-agent-1.7.11.jar:/kms/component/canal-admin/bin/../lib/byte-buddy-1.7.11.jar:/kms/component/canal-admin/bin/../lib/avaje-classpath-scanner-api-2.2.jar:/kms/component/canal-admin/bin/../lib/avaje-classpath-scanner-3.1.1.jar:/kms/component/canal-admin/bin/../lib/assertj-core-3.9.1.jar:/kms/component/canal-admin/bin/../lib/asm-5.0.4.jar:/kms/component/canal-admin/bin/../lib/antlr4-runtime-4.7.2.jar:/kms/component/canal-admin/bin/../lib/animal-sniffer-annotations-1.14.jar:/kms/component/canal-admin/bin/../lib/android-json-0.0.20131108.vaadin1.jar:/kms/component/canal-admin/bin/../lib/accessors-smart-1.2.jar:/usr/java/jdk-17/lib:.:/usr/java/jdk-17/lib:.:/usr/java/jdk-17/lib:.:/usr/java/jdk-17/lib:.:/usr/java/jdk-17/lib:.:/usr/local/jdk1.8.0_211/lib/dt.jar:/usr/local/jdk1.8.0_211/lib/tools.jar cd to /kms/component/canal-admin/bin for continue
06-27
"C:\Program Files\Java\jdk-21\bin\java.exe" -Dmaven.multiModuleProjectDirectory=D:\BaiduNetdiskDownload\苍穹外卖\资料\day01\后端初始工程\sky-take-out -Djansi.passthrough=true "-Dmaven.home=C:/Program Files/JetBrains/IntelliJ IDEA 2025.1.1.1/plugins/maven/lib/maven3" "-Dclassworlds.conf=C:\Program Files\JetBrains\IntelliJ IDEA 2025.1.1.1\plugins\maven\lib\maven3\bin\m2.conf" "-Dmaven.ext.class.path=C:\Program Files\JetBrains\IntelliJ IDEA 2025.1.1.1\plugins\maven\lib\maven-event-listener.jar" "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2025.1.1.1\lib\idea_rt.jar=51884" -Dfile.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8 -classpath "C:\Program Files\JetBrains\IntelliJ IDEA 2025.1.1.1\plugins\maven\lib\maven3\boot\plexus-classworlds-2.8.0.jar;C:\Program Files\JetBrains\IntelliJ IDEA 2025.1.1.1\plugins\maven\lib\maven3\boot\plexus-classworlds.license" org.codehaus.classworlds.Launcher -Didea.version=2025.1.1.1 compile [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] sky-take-out [pom] [INFO] sky-common [jar] [INFO] sky-pojo [jar] [INFO] sky-server [jar] [INFO] [INFO] ------------------------< com.sky:sky-take-out >------------------------ [INFO] Building sky-take-out 1.0-SNAPSHOT [1/4] [INFO] from pom.xml [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] -------------------------< com.sky:sky-common >------------------------- [INFO] Building sky-common 1.0-SNAPSHOT [2/4] [INFO] from sky-common\pom.xml [INFO] --------------------------------[ jar ]--------------------------------- Downloading from central: https://repo.maven.apache.org/maven2/org/springframework/spring-context/5.3.22/spring-context-5.3.22.jar Downloaded from central: https://repo.maven.apache.org/maven2/org/springframework/spring-context/5.3.22/spring-context-5.3.22.jar (1.3 MB at 11 kB/s) [INFO] [INFO] --- resources:3.2.0:resources (default-resources) @ sky-common --- Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-api/3.1.0/maven-plugin-api-3.1.0.jar Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-api/3.1.0/maven-plugin-api-3.1.0.jar (50 kB at 10.0 kB/s) Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/maven-artifact/3.1.0/maven-artifact-3.1.0.jar Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/maven-core/3.1.0/maven-core-3.1.0.jar Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/maven-settings/3.1.0/maven-settings-3.1.0.jar Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/maven-settings-builder/3.1.0/maven-settings-builder-3.1.0.jar Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/maven-repository-metadata/3.1.0/maven-repository-metadata-3.1.0.jar Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/maven-artifact/3.1.0/maven-artifact-3.1.0.jar (52 kB at 24 kB/s) Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/maven-model-builder/3.1.0/maven-model-builder-3.1.0.jar Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/maven-repository-metadata/3.1.0/maven-repository-metadata-3.1.0.jar (30 kB at 7.3 kB/s) Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/maven-aether-provider/3.1.0/maven-aether-provider-3.1.0.jar Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/maven-settings-builder/3.1.0/maven-settings-builder-3.1.0.jar (41 kB at 7.9 kB/s) Downloading from central: https://repo.maven.apache.org/maven2/org/eclipse/aether/aether-spi/0.9.0.M2/aether-spi-0.9.0.M2.jar Downloaded from central: https://repo.maven.apache.org/maven2/org/eclipse/aether/aether-spi/0.9.0.M2/aether-spi-0.9.0.M2.jar (18 kB at 2.6 kB/s) Downloading from central: https://repo.maven.apache.org/maven2/org/eclipse/aether/aether-impl/0.9.0.M2/aether-impl-0.9.0.M2.jar Downloading from central: https://repo.maven.apache.org/maven2/org/eclipse/aether/aether-api/0.9.0.M2/aether-api-0.9.0.M2.jar Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/maven-model-builder/3.1.0/maven-model-builder-3.1.0.jar (159 kB at 14 kB/s) Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/3.0.10/plexus-utils-3.0.10.jar Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/maven-aether-provider/3.1.0/maven-aether-provider-3.1.0.jar (60 kB at 3.4 kB/s) Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-classworlds/2.4.2/plexus-classworlds-2.4.2.jar Downloaded from central: https://repo.maven.apache.org/maven2/org/eclipse/aether/aether-impl/0.9.0.M2/aether-impl-0.9.0.M2.jar (145 kB at 6.1 kB/s) Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/maven-model/3.1.0/maven-model-3.1.0.jar Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/3.0.10/plexus-utils-3.0.10.jar (231 kB at 8.4 kB/s) Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-component-annotations/2.0.0/plexus-component-annotations-2.0.0.jar Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-component-annotations/2.0.0/plexus-component-annotations-2.0.0.jar (4.2 kB at 151 B/s) Downloading from central: https://repo.maven.apache.org/maven2/org/eclipse/sisu/org.eclipse.sisu.plexus/0.0.0.M2a/org.eclipse.sisu.plexus-0.0.0.M2a.jar Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-classworlds/2.4.2/plexus-classworlds-2.4.2.jar (47 kB at 1.4 kB/s) Downloading from central: https://repo.maven.apache.org/maven2/javax/enterprise/cdi-api/1.0/cdi-api-1.0.jar Downloaded from central: https://repo.maven.apache.org/maven2/javax/enterprise/cdi-api/1.0/cdi-api-1.0.jar (45 kB at 1.3 kB/s) Downloading from central: https://repo.maven.apache.org/maven2/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar Downloaded from central: https://repo.maven.apache.org/maven2/org/eclipse/aether/aether-api/0.9.0.M2/aether-api-0.9.0.M2.jar (134 kB at 3.8 kB/s) Downloading from central: https://repo.maven.apache.org/maven2/org/sonatype/sisu/sisu-guice/3.1.0/sisu-guice-3.1.0-no_aop.jar Downloaded from central: https://repo.maven.apache.org/maven2/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar (5.8 kB at 166 B/s) Downloading from central: https://repo.maven.apache.org/maven2/aopalliance/aopalliance/1.0/aopalliance-1.0.jar Downloaded from central: https://repo.maven.apache.org/maven2/aopalliance/aopalliance/1.0/aopalliance-1.0.jar (4.5 kB at 125 B/s) Downloading from central: https://repo.maven.apache.org/maven2/org/eclipse/sisu/org.eclipse.sisu.inject/0.0.0.M2a/org.eclipse.sisu.inject-0.0.0.M2a.jar Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/maven-core/3.1.0/maven-core-3.1.0.jar (563 kB at 14 kB/s) Downloading from central: https://repo.maven.apache.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar Downloaded from central: https://repo.maven.apache.org/maven2/org/eclipse/sisu/org.eclipse.sisu.inject/0.0.0.M2a/org.eclipse.sisu.inject-0.0.0.M2a.jar (202 kB at 5.1 kB/s) Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-filtering/3.2.0/maven-filtering-3.2.0.jar Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-filtering/3.2.0/maven-filtering-3.2.0.jar (52 kB at 1.3 kB/s) Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-shared-utils/3.3.3/maven-shared-utils-3.3.3.jar Downloaded from central: https://repo.maven.apache.org/maven2/org/eclipse/sisu/org.eclipse.sisu.plexus/0.0.0.M2a/org.eclipse.sisu.plexus-0.0.0.M2a.jar (202 kB at 5.0 kB/s) Downloading from central: https://repo.maven.apache.org/maven2/commons-io/commons-io/2.6/commons-io-2.6.jar Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/maven-model/3.1.0/maven-model-3.1.0.jar (164 kB at 3.8 kB/s) Downloading from central: https://repo.maven.apache.org/maven2/org/apache/commons/commons-lang3/3.8.1/commons-lang3-3.8.1.jar Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-shared-utils/3.3.3/maven-shared-utils-3.3.3.jar (154 kB at 3.5 kB/s) Downloaded from central: https://repo.maven.apache.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar (44 kB at 976 B/s) Downloaded from central: https://repo.maven.apache.org/maven2/commons-io/commons-io/2.6/commons-io-2.6.jar (215 kB at 3.7 kB/s) Downloaded from central: https://repo.maven.apache.org/maven2/org/sonatype/sisu/sisu-guice/3.1.0/sisu-guice-3.1.0-no_aop.jar (357 kB at 4.4 kB/s) Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/commons/commons-lang3/3.8.1/commons-lang3-3.8.1.jar (502 kB at 4.2 kB/s) [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for sky-take-out 1.0-SNAPSHOT: [INFO] [INFO] sky-take-out ....................................... SUCCESS [ 0.009 s] [INFO] sky-common ......................................... FAILURE [04:03 min] [INFO] sky-pojo ........................................... SKIPPED [INFO] sky-server ......................................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 04:03 min [INFO] Finished at: 2025-06-07T16:27:21+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources) on project sky-common: Execution default-resources of goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources failed: Plugin org.apache.maven.plugins:maven-resources-plugin:3.2.0 or one of its dependencies could not be resolved: [ERROR] Could not transfer artifact org.apache.maven:maven-settings:jar:3.1.0 from/to central (https://repo.maven.apache.org/maven2): Connect to repo.maven.apache.org:443 [repo.maven.apache.org/151.101.108.215] failed: Connect timed out [ERROR] [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <args> -rf :sky-common Process finished with exit code 1 是什么问题
06-08
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值