If he was eating before, and nothing has changed since the last time he ate, he is just doing what bp do. Mine is also a year old and had not eaten for several months. I offer every 3 weeks and toss out the rat if he does not strike it in 10 seconds. Normally you will know immediately if it will eat once a strike happens in seconds. Leaving it overnight may work but I find that works for snakes that WANT to eat but too shy to eat, not those who don't want to eat at all. Mine is also active at night and barely lost weight.
Wild bp binge eats and fasts for months. Many other species of reptiles do something similar, like leopard geckos refusing or eating less around this time of year or some colubrids refusing food during winter. Even bearded dragons have their days where they eat less than usual. Save your worries for when your snake loses too much weight. If you are unsure, post a pic of your snake and provide weight in grams.
There are some tricks on getting it to eat but 2 months is nothing and it is best to let him be unless you must intervene.