Heard about this forum and thought this would be a great place to ask a question. They say there are no stupid questions... please disagree if you feel like it.
I'm trying to pick up Spring but not having a strong Java knowledge I have to learn a lot of stuff around it as I get to it. I understand it's a terrible way to learn but I kinda enjoy it. I understand there is no structure to such learning but I'm having fun and I see it as a form of entertainment. This is a hobby so I am not charging anybody money or making any sort of real world damage.
I'm trying to integrate Spring Security with a rest api I'm trying to build. Most things are clear. I need to override methods that redirect and return 401 / 200 instead of 302. Also I have to configure in memory users. I've followed a couple of tutorial but in the end I made a solution that's kind of a hybrid. Having done that I am left with 3 lines that confuse me, because I don't really understand what Spring is doing with it.
My custom security configurer class that extends WebSecurityConfigurerAdapter
I'm am not sure what these lines are doing. And any help would be greatly appreciated.
I'm assuming that Spring registers it somewhere but I would like to know a bit more.
Here are the other two files in my `security` package