Spring Boot Security | Basic authentication and authorization | Security Application in Spring Boot

Sdílet
Vložit
  • čas přidán 5. 09. 2024
  • #springboot
    #springboottutorial
    #spring
    #java

Komentáře • 15

  • @dukhanvlogs
    @dukhanvlogs Před 3 dny +2

    thanks a lot bro i been struggle for two days

  • @sabari.delphi
    @sabari.delphi Před rokem +2

    Thank you so much.I did a mistake i.e.code snippet does Work as the controller package under the right package"

  • @sabari.delphi
    @sabari.delphi Před rokem +1

    Got below error
    Whitelabel Error Page
    This application has no explicit mapping for /error, so you are seeing this as a fallback.
    Thu Mar 30 16:22:06 IST 2023
    There was an unexpected error (type=Not Found, status=404).

    • @javatalent
      @javatalent  Před rokem

      Yes there is no any /error mapping done in this example

    • @javatalent
      @javatalent  Před rokem

      Not Found means requested resource not found please cross check for server port and url.

    • @sabari.delphi
      @sabari.delphi Před rokem +1

      @@javatalent now error resolved after making the right package..thank you

    • @javatalent
      @javatalent  Před rokem

      @@sabari.delphi Great!

  • @sabari.delphi
    @sabari.delphi Před rokem +1

    I got error while opening the /messge link itself

    • @javatalent
      @javatalent  Před rokem

      What the error you are getting paste the screenshot

  • @sabari.delphi
    @sabari.delphi Před rokem +1

    Got the Bad credentials error

    • @javatalent
      @javatalent  Před rokem

      Hi Sabari,
      Thanks for visiting in this channel.
      I am writing here with respect to all your comments:
      1. WhiteLabel Error page you are seeing because no /error page i had mapped.
      2. For the Bad Credentials, Once you run this application by using localhost:8080/message one pop will come to ask UserName and Password if you hit cancel there you will see the Whitelabel error.
      3. Bad Credentials please check through the SpringSecurityConfig class what you have configured in that class as username and password.