A connector , comprising: a first connector ; and a second connector , wherein the connector is configured by the first connector and the second connector which are configured to be fitted to each other, the first connector includes a projecting portion extending toward the second connector in a fitting direction of the first connector and the second connector , the second connector includes: a terminal (T1, T2) extending in the fitting direction, a cap including a cover portion that covers a front surface of the terminal (T1, T2), a rotating shaft provided on an edge portion of the cover portion , and a contact portion extending to an opposite side to the cover portion from the rotating shaft and abutable on the projecting portion , and a housing that supports the rotating shaft , the cover portion includes a first cover portion provided with the rotating shaft , a second cover portion adjacent to the first cover portion , and a connection portion that rotatably connects the first cover portion and the second cover portion to each other, characterized in that the first connector and the second connector are configured to be electrically connected to each other, the second connector includes a rail pin , the second cover portion is provided with the rail pin , the housing includes a rail extending in a direction intersecting with the fitting direction, the rail pin is configured to move along the rail in response to the contact portion being pressed and/or released by the projecting portion , and when the contact portion is pressed backward in the fitting direction, the first cover portion is adapted to rotate around the rotating shaft in a direction away from the terminal (T1, T2). a first connector ; and a second connector , wherein the connector is configured by the first connector and the second connector which are configured to be fitted to each other, the first connector includes a projecting portion extending toward the second connector in a fitting direction of the first connector and the second connector , the second connector includes: a terminal (T1, T2) extending in the fitting direction, a cap including a cover portion that covers a front surface of the terminal (T1, T2), a rotating shaft provided on an edge portion of the cover portion , and a contact portion extending to an opposite side to the cover portion from the rotating shaft and abutable on the projecting portion , and a housing that supports the rotating shaft , a terminal (T1, T2) extending in the fitting direction, a cap including a cover portion that covers a front surface of the terminal (T1, T2), a rotating shaft provided on an edge portion of the cover portion , and a contact portion extending to an opposite side to the cover portion from the rotating shaft and abutable on the projecting portion , and a housing that supports the rotating shaft , the cover portion includes a first cover portion provided with the rotating shaft , a second cover portion adjacent to the first cover portion , and a connection portion that rotatably connects the first cover portion and the second cover portion to each other, characterized in that the first connector and the second connector are configured to be electrically connected to each other, the second connector includes a rail pin , the second cover portion is provided with the rail pin , the housing includes a rail extending in a direction intersecting with the fitting direction, the rail pin is configured to move along the rail in response to the contact portion being pressed and/or released by the projecting portion , and when the contact portion is pressed backward in the fitting direction, the first cover portion is adapted to rotate around the rotating shaft in a direction away from the terminal (T1, T2). <EOS>