A swash plate type compressor is provided to preventing the frictional force and temperature rise by forming an oil path to rapidly inject the oil to the connection of a swash plate, a shoe and a piston. The swash plate type compressor is composed of an oil supply path(142) longitudinally formed to move the oil supplied from an oil pump(200) toward the front, an oil injecting path(145) formed in the middle of the oil supply path to supply the oil toward the inner circumference of an insert hole formed in a swash plate(150), and an oil injecting hole(151) guiding so that the oil supplied through the oil injecting path is supplied to the connection part of a shoe(161) and the swash plate. The oil supplied through the oil supply path is supplied to a mechanical seal through an outlet formed in a driving shaft. The oil which the mechanical chamber is supplied is supplied through the gap of a front housing and the driving shaft toward a swash plate seal. The gap of the front housing and driving shaft is provided by a flat plane formed in a D-cut shape in the outer circumference of the driving shaft.