Boredom must be interpreted as the time for Twirling Hair. In the sense that the best solution for boredom is to give yourself time for constructive unproductivity.
Boring often happens when you have to do repetitive tasks, or the topic no longer interests you.
The point is, that instead of falling into the black abyss and blaming your boss for not interesting work, approach the matter with optimism.
If you are bored, it means that you have additional energy at your disposal, which you only need to manage properly. A few minutes of twirling hair and probably an idea will appear.
I also suggest looking at the article “What will make you happy“.