Find a new job or request to move to a new project if you can do so inside your current company. A major reason I left my first job out of school had to do with not learning anything new. That and after 5 years my pay had only increased $12k. Nothing is worse than being bored at work. Last week one day our internal network was out all day and I literally could get no work done for 8 hours. Browsing the internet gets boring quickly and you don’t realize that until it’s literally all you can do.
Also the longer you stay at a place not learning anything new and not keeping up with technology, the less marketable you become for future positions. I personally enjoy Java, but only if I’m writing it as a backend and also get to do the front end (and as long as the front end is not Java, that is old tech for front end).