Microcavity exciton-polaritons are two-dimensional bosonic quasiparticles composed by excitons and photons. Using a model Hamiltonian with parameters generated from ab initio density-functional theory and Bethe-Salpeter equation calculations, we investigate the exciton and the exciton-polariton properties of hexagnonal boron nitride (hBN) based microcavity. We show that hBN-based microcavities, including monolayer and all-dielectric ones, are promising in optoelectronic applications. Room temperature exciton-polariton Bose-Einstein condensation can be achieved because of the large oscillator strength and binding energy of the exciton, and the strong interaction between the exciton-polaritons and the longitudinal optical phonons. Based on this BEC state, an exciton-polariton mediated superconducting device can also be fabricated at a few tens of kelvin using the microcavity structure proposed by Laussy et al. Phys. Rev. Lett. 104, 106402 (2010).