It frequently happens that there's some material I have to cover which is, frankly, boring. The subject itself may be boring, or it may be the particular exercises, but in any case I have to get through it. When this happens I try to adopt a positive attitude in the hopes that at least I will not be as boring as whatever it is I'm teaching. This only helps so much, though, especially in front of a class of students that don't particularly care about math a lot.
I know from personal experience that when you get bored you stop paying attention. What are some ways of not losing your class during the more tedious bits? Something I've thought about is telling them about the applications of the material, or even replacing the exercise I'm doing by something more "real world"; right now my students are in engineering, so they might appreciate a practical example. This doesn't always work, though, because usually applications of the material are more advanced than the basic stuff I want to do.
I've also considered straight up telling the class that this stuff is boring but we just have to get through it, i.e., take the "accomplice" route. Whether this would work is debatable, and also as a teacher I feel I should try to find the fun in everything I teach instead of "taking sides" with the students.