Fix #438 In dev mode, only recollect routes when there's .class file change