Spring Security in Spring Boot in Hindi | @EnableWebSecurity Annotation

🟡 Perks: / @engineeringdigest
🟡 Patreon: / engineeringdigest
🟡 Discord: / discord
🟡 Slack: join.slack.com/t/engineeringd...
🔴 Twitch: / engineeringdigest
🔴 Personal KZread Channel: / @thevipulvats
🔴 Instagram: / thevipulvats
🔴 Twitter: / thevipulvats
🔴 LinkedIn: / thevipulvats
🔴 Website: engineeringdigest.net
🟢 Source code: github.com/chotabheeeeem/jour...
🟢 Spring Security 6 config: www.dropbox.com/scl/fi/evumib...
🔴 IMPORTANT !!!!!!
If circular dependency comes then add this property in .yml file
spring:
main:
allow-circular-references: true
or spring.main.allow-circular-references=true in .properties file.

Пікірлер: 136

  • @EngineeringDigest
    @EngineeringDigest5 ай бұрын

    If you are using latest version. Check last link in bio.

  • @navneetsingh5244

    @navneetsingh5244

    4 ай бұрын

    Sir I tried a lot can please help us

  • @TradingArmyBD

    @TradingArmyBD

    3 ай бұрын

    from the beginning, I have used spring boot 3.2.4, while I add the spring-boot-starter-security dependency to the pom.xml, I can't find the WebSecurityConfigurerAdapter, while searching, it's deprecated from 3.0.0. Tried to fix the issues myself, and sorry. Finally, rollback to the least version 2.7.18.

  • @EngineeringDigest

    @EngineeringDigest

    2 ай бұрын

    check last link in bio.

  • @hamdanahmed3565

    @hamdanahmed3565

    Ай бұрын

    @@EngineeringDigest I was stuck in new spring security bcs it was giving me circular dependency issue but I was able to fix it when I again saw the discription. But I found out that it is not a best approach it can cause difficulties in maintaining? Is that right ?

  • @subhashisbhowmik7

    @subhashisbhowmik7

    Ай бұрын

    ​@@hamdanahmed3565 use constructor to initalize final service objects instead of autowired...that might solve the issue

  • @pankajkumar-ui3oi
    @pankajkumar-ui3oi4 ай бұрын

    Great tutorial with expressive content, thanks for sharing such great article.

  • @SaumyaSaxena2101
    @SaumyaSaxena21014 ай бұрын

    Hi Vipul... watching from Boston, Massachusetts. Really great explanation! I specifically love the part where you make it funny. That keeps it lively and with examples you make it very easy....this helps to remember key details.

  • @EngineeringDigest

    @EngineeringDigest

    4 ай бұрын

    Thanks a lot :)

  • @oshogarg5215
    @oshogarg52154 ай бұрын

    Very well explained , watched full video . It will be a cherry on top if you can provides notes of spring security

  • @hrsatsangi
    @hrsatsangi7 ай бұрын

    Thanks sir for your genuine efforts ❤🎉 Your content always up to the mark really love your content 💖 Please complete spring boot series as soon as possible 🙏

  • @fazlurrehmanejazahmad6068
    @fazlurrehmanejazahmad60685 ай бұрын

    Sir keep on ..dont get disappointed by negative comments..ur teaching is awesome.

  • @vijaysonawane3776
    @vijaysonawane37763 ай бұрын

    @EngineeringDigest Thank you for this series, Your videos are next level no one is going to give such content that too free of cost, your style of teaching is too unique.

  • @kidsnkiddi2337
    @kidsnkiddi23378 ай бұрын

    Most awaited video❤

  • @AvinashBadiger-ve1mx
    @AvinashBadiger-ve1mx10 күн бұрын

    I have been following you for a month, and you are the best teacher. Thanks for your time, bro. I really appreciate you. and am 50kth sub guy.

  • @ajaywankhade5054
    @ajaywankhade50544 күн бұрын

    Thank u sir

  • @sankalpchordia5245
    @sankalpchordia52456 күн бұрын

    great content!

  • @abrarsaleem6712
    @abrarsaleem67124 ай бұрын

    hello boss your videos are just awesome and way of teaching is just unmatchable. i request you to develope a complete project with spring boot backend and vue js frontend plzzz and mainly focus on admin and user roles in that projects. thanks

  • @rohitgla75
    @rohitgla757 ай бұрын

    Best content on you tube.

  • @shubhamsinghnegi5060
    @shubhamsinghnegi50608 ай бұрын

    thank you

  • @mygamedeveloper
    @mygamedeveloper7 ай бұрын

    What is better for creating rest api in spring boot webflux or by default spring provide web rest api

  • @hemantpandey6077
    @hemantpandey60778 ай бұрын

    sir Perfect spring boot course perfect time pe Mila hai ❤

  • @EngineeringDigest

    @EngineeringDigest

    8 ай бұрын

    🤝

  • @aniketpatil7960
    @aniketpatil796016 күн бұрын

    Such underrated channel , you deserve more subscribers ❤ i am telling this from my heart.

  • @EngineeringDigest

    @EngineeringDigest

    15 күн бұрын

    Thank you so much 😀

  • @aniketpatil7960
    @aniketpatil796016 күн бұрын

    21:55 avoid thus kind people sir , i live your teaching style and slides are explained in well manner i mean no hards words in their , Once again love you

  • @ragingpahadi
    @ragingpahadi5 ай бұрын

    One of the best KZread channels ! By watching your videos a 10 year old kid can start coding 🎉

  • @EngineeringDigest

    @EngineeringDigest

    5 ай бұрын

    Thanks a ton

  • @himanshuram_ranjan
    @himanshuram_ranjan5 ай бұрын

    First of all thank you for such great videos. Just wanted to say that spring security has deprecated this WebSecurityConfigurerAdapter 2 years back, and since you are making the videos now it will be helpful if you can update the videos accordingly

  • @EngineeringDigest

    @EngineeringDigest

    5 ай бұрын

    Concepts remain same

  • @himanshuram_ranjan

    @himanshuram_ranjan

    5 ай бұрын

    @@EngineeringDigest okay will try to implement the new way after watching your video. Thanks

  • @ashwingadve7522
    @ashwingadve752214 күн бұрын

    Nice tutorial. This video was bit overwhelming

  • @SurajKumar-sg5li
    @SurajKumar-sg5li12 күн бұрын

    Thank you Sir for the efforts to teach in such a basic way. As WebSecurityConfigurerAdapter Interface is Deprecated, how will it impact the existing projects, and Should we use any Deprecated methods?

  • @vijaysonawane3776
    @vijaysonawane37763 ай бұрын

    one day everything is going to depricated guys you have to update yourself according to market, if you wanted to survive you have to took effort

  • @OpSorryYt_2.0M_Tech
    @OpSorryYt_2.0M_Tech7 ай бұрын

    sir plz next new video for incease knowlauge of main.Thank u? 👌

  • @SaeelDhatrak
    @SaeelDhatrakАй бұрын

    I'm a slow learner and it took me almost 3-4 hours to take notes and do the code. But now everything is clear. Vipul Sir In my case their was one change needed to be done in the code provided in the description. We need to create "PasswordEncoderConfig" class in the same "config" package and then provide the dependency of PasswordEncoder in the "SpringSecurity" class because I was facing the unresolvable circular reference issue.

  • @EngineeringDigest

    @EngineeringDigest

    Ай бұрын

    check description, you can also add this property for circular dependency.

  • @SaeelDhatrak

    @SaeelDhatrak

    Ай бұрын

    @@EngineeringDigest Ok

  • @pratiklohar4566
    @pratiklohar45665 ай бұрын

    Hi Vipul ... WebSecurityConfigurerAdapter does not exist in Sping Security 6 (SpringBoot 3 and above), Could you please update this tutorial.

  • @toptenbiggest1783
    @toptenbiggest17838 ай бұрын

    Make more video ❤

  • @gauravjha2119
    @gauravjha21193 ай бұрын

    WebsecurityconfigurerAdapter is depricated now....make video on current security scenario.....u taught it very well

  • @davendrabedwal830

    @davendrabedwal830

    3 ай бұрын

    org.springframework.boot spring-boot-starter-parent 2.7.18 change ur pom.xml to this abi k lie ye hi krdo

  • @iswherevivek

    @iswherevivek

    Ай бұрын

    @@davendrabedwal830 what should be the java version in pom? for 2.8.17 because when i changed the version it cause an error

  • @sandipzalte7593
    @sandipzalte75937 ай бұрын

    I'm having trouble extending the SpringSecurity class (WebSecurityConfigurerAdapter) due to the error "Cannot resolve symbol 'WebSecurityConfigurerAdapter'." According to Stack Overflow, this class has been removed in the latest Spring Boot library. How can I resolve this and extend the appropriate class for configuring Spring Security in the latest version?

  • @AnantaAkash.Podder

    @AnantaAkash.Podder

    6 ай бұрын

    I think it's related to Spring Security versioning problem

  • @user-wx3xj3ig8l

    @user-wx3xj3ig8l

    5 ай бұрын

    @@AnantaAkash.Podder which version your are using ?

  • @user-cv1gr1kg8k

    @user-cv1gr1kg8k

    4 ай бұрын

    you can check out latest version of spring security 6.2 on medium article.

  • @harshsijariya6005
    @harshsijariya6005Ай бұрын

    how you explain i started loving you dude. thank you very much

  • @ashishkhatarker3007
    @ashishkhatarker3007Ай бұрын

    Please make spring security video with spring boot 3 and new classes like security filter chain and AuthenticationManager

  • @sayanmukherjee8216
    @sayanmukherjee82162 ай бұрын

    please make a video in JWT authentication

  • @abhinavpandey3356
    @abhinavpandey33563 ай бұрын

    Good content sir . Just had a doubt In load user by username method how do we handle if username is same in db ..

  • @SahilKhan-fh9du

    @SahilKhan-fh9du

    19 күн бұрын

    username same nahi ho sakta kyunki unique="true" hai

  • @gajanankanekar9118
    @gajanankanekar91184 ай бұрын

    timestamp 8.02. Sir, ConfigurerAdapter is deprecated now. Please use latest version

  • @user-xz5os9ng7s
    @user-xz5os9ng7s2 ай бұрын

    what should i write for new version instead of this in securityconfig--> @Override protected void configure(AuthenticationManagerBuilder auth) throws Exception { auth.userDetailsService(userDetailService).passwordEncoder(passwordEncoder()); }

  • @User-student-404
    @User-student-4047 ай бұрын

    bhaiya new video kab aane wali hai ?

  • @baadal440
    @baadal44029 күн бұрын

    🌟🌟🌟🌟🌟

  • @lmn8864
    @lmn886426 күн бұрын

    Brother github sourcecode link is not opening

  • @AnshulyouT
    @AnshulyouT11 күн бұрын

    after adding the dependency and using password in basic authorisation there's still error of unauthorised in postman what to do?

  • @omanshkalra1278

    @omanshkalra1278

    10 күн бұрын

    Just close the tab you are using on postman and add a new request or a new collection.

  • @suruchigupta6639
    @suruchigupta66395 ай бұрын

    WebSecurityConfigurerAdapter is showing red in my application, even after adding required maven dependency.. tried refreshing eveything still didnt work? Is it because SpringBoot not supporting WebSecurityConfigurerAdapter in latest version? I see you didnt add version for this dependency..I tried the same but didnt work for me :(

  • @keshavdeosharma7222

    @keshavdeosharma7222

    4 ай бұрын

    Hello, in latets spring security version WebSecurityConfigurerAdapter class is deprecated. Instead of this you have to use SecurityFilterChain as a bean in your config class.

  • @susantamaity6579

    @susantamaity6579

    3 ай бұрын

    ​@@keshavdeosharma7222 can you share this security code using SecurityFilterChain for this project

  • @toptenbiggest1783
    @toptenbiggest17838 ай бұрын

    Thank You...........❤❤, I was looking for this video for a long Time Liked and subscribed and shared in my WhatsApp group. And again thank you so much. ........❤❤

  • @EngineeringDigest

    @EngineeringDigest

    8 ай бұрын

    thank you so much

  • @omkarkrishnatsathe5588
    @omkarkrishnatsathe55885 күн бұрын

    @EngineeringDigest can you provide the PPT file for the future reference

  • @utkarshshrivastava6571
    @utkarshshrivastava65715 күн бұрын

    When i am updating the username i am getting internal sever error ? is anyone here facing same ?

  • @pranjalsood7807
    @pranjalsood780726 күн бұрын

    Sir , which version of spring you are using ,I'm unable to extend WebSecurityConfigurerAdapterClass and its methods 😔

  • @ChetanRawattunein

    @ChetanRawattunein

    7 күн бұрын

    It's deprecated in Spring 5 & above

  • @flutterdevfarm
    @flutterdevfarm8 ай бұрын

    Sir, your video is awesome.... But you take a long gap to upload a next one!😂

  • @EngineeringDigest

    @EngineeringDigest

    8 ай бұрын

    The reason is in your comment itself 🤝

  • @User-student-404

    @User-student-404

    8 ай бұрын

    bcz video is awesome @@EngineeringDigest ❤

  • @user-cv1gr1kg8k

    @user-cv1gr1kg8k

    4 ай бұрын

    it will be great if u could shorter the gap. @@EngineeringDigest

  • @rizzron
    @rizzronАй бұрын

    I deleted all the user and now I am unable to create any more users because of spring security. It's showing unauthorized 401 every time I want to create more user. Can you please help?

  • @EngineeringDigest

    @EngineeringDigest

    Ай бұрын

    keep watching the video, we skipped the public controller which can be used to add new users

  • @rizzron

    @rizzron

    Ай бұрын

    ​@@EngineeringDigestI am able to create user but the password encryption is not working while saving the password in database.

  • @shrutiraval6806
    @shrutiraval680616 күн бұрын

    getting 401 or near to 403 error in postman sir how can i resolve that?

  • @PrathamMakwana-wr5lv

    @PrathamMakwana-wr5lv

    6 күн бұрын

    same problem i have . i am using spring security latest version after apply all the code given by sir but still get 401 and 403 you solve this problem or not

  • @RISHAV25KUMAR
    @RISHAV25KUMAR13 күн бұрын

    Please make LLD videos in java

  • @Arjun2mkap3929
    @Arjun2mkap392912 күн бұрын

    30:00

  • @rishujaiswal3509
    @rishujaiswal35092 ай бұрын

    @EngineeringDigest bro can you please send me the presentation that you are referring in the video. Please bro sent us so that we can refer those.

  • @mdsaif4696
    @mdsaif46965 ай бұрын

    Why my postman and MongoDB atlas is out of sync. Their datas are different.

  • @vaibhavkhatri1428
    @vaibhavkhatri14286 ай бұрын

    when next video will come vipul bhaiya👀❤

  • @EngineeringDigest

    @EngineeringDigest

    6 ай бұрын

    jan-feb, stay tuned

  • @gajanankanekar9118
    @gajanankanekar91184 ай бұрын

    sir, screen text is not visible. Plese increase the the size

  • @lastminutegyan9975
    @lastminutegyan9975Ай бұрын

    When the user did not require authentication and you called the API at (38:19), did you pass Basic auth? Also, after we've created the Spring config class, will we get a basic authentication pass in the console? Because I am not getting. Also, I am liking your videos but this video didnt had much explanation about UserDetailsServiceImpl and SpringSecurity Config. I mean you did but I felt not how you did in other videos.

  • @scratchworld6599

    @scratchworld6599

    24 күн бұрын

    bro resolve hua ??

  • @nitishah5879

    @nitishah5879

    23 күн бұрын

    i am also not able to login even after providing the credentials

  • @scratchworld6599

    @scratchworld6599

    22 күн бұрын

    @@nitishah5879 bro after making public controller your issue will be resolved

  • @nishitshukla5626
    @nishitshukla56262 ай бұрын

    Encountering this error in the code provided in the link in description: Error creating bean with name 'springSecurity': Requested bean is currently in creation: Is there an unresolvable circular reference?

  • @EngineeringDigest

    @EngineeringDigest

    Ай бұрын

    If circular dependency comes then add this property in .yml file spring: main: allow-circular-references: true or spring.main.allow-circular-references=true in .properties file.

  • @utkarshkumarverma6188
    @utkarshkumarverma6188Ай бұрын

    If sidhi baat no bakwaas had a face. It would be Vipul Sir

  • @djomy9160
    @djomy916020 күн бұрын

    Unauthorised error on postman ...for inserting a user .and all other calls.

  • @rold7256

    @rold7256

    14 күн бұрын

    hua bhai resolve

  • @nikhilchoudhary2955

    @nikhilchoudhary2955

    8 күн бұрын

    ​@@rold7256 Same bhai nahi hua resolve, any way?

  • @rold7256

    @rold7256

    8 күн бұрын

    @@nikhilchoudhary2955 bhai mongodb ka issue hai network access dekho mongodb atlas pe hoga pe current ip add kro purnai delete kr ke fir run kro

  • @vinaykumar-ss2pc
    @vinaykumar-ss2pc7 ай бұрын

    Sir java aati h muje direct spring boot start kru ?

  • @EngineeringDigest

    @EngineeringDigest

    7 ай бұрын

    yes

  • @abhishekk1794
    @abhishekk17947 ай бұрын

    Please upload source code sir

  • @Uzair_Anwar2299
    @Uzair_Anwar22992 ай бұрын

    WebSecurityConfigurerAdapter is going deprecating. any comment on this and please make complete explianation video with JWT with fliters as well

  • @EngineeringDigest

    @EngineeringDigest

    2 ай бұрын

    check previous video in the same playlist

  • @Uzair_Anwar2299

    @Uzair_Anwar2299

    Ай бұрын

    ​@@EngineeringDigest I didn't get any video in the playlist with jwt implementation. Can you share the link here please

  • @m2dtricks241
    @m2dtricks241Ай бұрын

    Circular dependency error aa raha hai please make video with newer version of spring security

  • @EngineeringDigest

    @EngineeringDigest

    Ай бұрын

    check description

  • @m2dtricks241

    @m2dtricks241

    Ай бұрын

    ​@@EngineeringDigestthanks for reply. I tried that thing so the error has gone but now it shows 404 Not Found and it is not authenticating me I am writing the same username and the password present in mongo Atlas. Please help

  • @m2dtricks241

    @m2dtricks241

    Ай бұрын

    Issue solved. Thanks

  • @prakashpandey96
    @prakashpandey966 ай бұрын

    Please use latest version

  • @EngineeringDigest

    @EngineeringDigest

    6 ай бұрын

    Ok, I will use Spring Boot 10323

  • @scratchworld6599
    @scratchworld659924 күн бұрын

    bhaiya mera code nhi chl raha 38:22 se postman me unauthorised bata raha jabki sab code follow kar raha hoon 😟😟😟😟

  • @shrutiraval6806

    @shrutiraval6806

    16 күн бұрын

    how can you that solve this error? i also getting the same error

  • @scratchworld6599

    @scratchworld6599

    15 күн бұрын

    @@shrutiraval6806 continue watching the video he will teach about public controller after making that your problem will be solved

  • @rold7256

    @rold7256

    14 күн бұрын

    @@scratchworld6599 bhai mera fir bi aa rha sare call pe 401 forbidden error

  • @arpitagrawal5620
    @arpitagrawal5620Ай бұрын

    but spring security 5.7 se jyada ho toh deprecate ho gya hai

  • @EngineeringDigest

    @EngineeringDigest

    Ай бұрын

    ok

  • @RAHULVERMA-o1m
    @RAHULVERMA-o1m11 күн бұрын

    If anyone getting 401 unauthorised error in your POSTMEN during POST request. Then go to POSTMEN in authorization section select NO Auth. You error has been solved.

  • @EngineeringDigest

    @EngineeringDigest

    9 күн бұрын

    🤝

  • @PrathamMakwana-wr5lv

    @PrathamMakwana-wr5lv

    6 күн бұрын

    still getting the 401 and 403 error

  • @utkarshshrivastava6571

    @utkarshshrivastava6571

    6 күн бұрын

    @@PrathamMakwana-wr5lv same bro ..

  • @RAHULVERMA-o1m

    @RAHULVERMA-o1m

    Күн бұрын

    @@PrathamMakwana-wr5lv check your postmen if you select Basic auth in authorization. Then set authorization to NO AUTH

  • @Himanshusingh-lj8ku
    @Himanshusingh-lj8ku3 ай бұрын

    Please JWT bata dete

  • @EngineeringDigest

    @EngineeringDigest

    3 ай бұрын

    Coming soon

  • @Himanshu-vi1jv
    @Himanshu-vi1jv3 ай бұрын

    mera unauthorized aara

  • @nitishah5879

    @nitishah5879

    23 күн бұрын

    thik hua ?? mera bhi wahi araha

  • @Himanshu-vi1jv

    @Himanshu-vi1jv

    22 күн бұрын

    @@nitishah5879 haa ho gya

  • @AnshulyouT

    @AnshulyouT

    17 күн бұрын

    @@Himanshu-vi1jv kese hua?

  • @shrutiraval6806

    @shrutiraval6806

    16 күн бұрын

    @@AnshulyouT same issue solve hua?

  • @AnshulyouT

    @AnshulyouT

    11 күн бұрын

    @@shrutiraval6806 nahi apka hua?

  • @arpitkongare9694
    @arpitkongare96945 ай бұрын

    Where can i connect you @Engineering Digest for the doubts ?

  • @EngineeringDigest

    @EngineeringDigest

    5 ай бұрын

    Discord

  • @nikstatus0735
    @nikstatus07356 ай бұрын

    Unable to run the code : showing this error: Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled. 2024-01-24T17:15:59.111+05:30 ERROR 11748 --- [ main] o.s.boot.SpringApplication : Application run failed java.lang.IllegalStateException: Error processing condition on org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration.authenticationEventPublisher