Hexagonal boron nitride (h-BN) based resistive switching device is fabricated with the multilayer h-BN film serving as an active material. The device shows the coexistence of forming-free and self-compliance bipolar resistive switching behavior with reproducible switching endurance and long retention time. Moreover, the device in pulse mode shows analog resistive switching characteristics, i.e. the resistance states can be continuously tuned by successive voltage pulses. This suggests that the device is also capable of mimicking the synaptic weight changes in neuromorphic systems.