Skip to content

Tag: spring-mvc

SpringBoot app does not run with exceptions

I am new at Spring Boot so I’m trying to create a simple Crud but I keep getting this error when I run my application I spose it must be some version problem but I don’t know how to fix it. I created the project with STS on ubuntu using mostly default options Answer It looks like you have java

Spring session attribute lost on page calling itself

So, I’ve got a very simple 2 controller Spring MVC app. First controller logs user in and puts it on session like this model.addAttribute( “user”, userDto ); Second controller displays project based on projectId, but expects user to be in session. First call to this controller works just fin…

Garbage collector vs IOC

Today I attend the interview I am a newbie to java, spring boot. The interviewer asked the question about garbage collectors. I said the garbage collector will release the unused resource. Then he asked about the IOC container, I said it take control of object creation and will inject into the dependent bean.…