To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.
I created a small project with Spring and the Navigator. But I'm having the following problem: I move from the EntryView (first view shown) to another view (FirstView). There I "redirect" to a second view (SecondView). This is working fine, but my second view has a method annotated with @PreDestroy. This method is actually called. So any action I do on this page is on a destroyed bean. I would never have expected this. Does this behave as it should?
Attached a small project showing this behavior. If you navigate to the second page and refresh the state, the bean is actually destroyed.