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
If you are using latest version. Check last link in bio.
@navneetsingh5244
4 ай бұрын
Sir I tried a lot can please help us
@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
2 ай бұрын
check last link in bio.
@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
Ай бұрын
@@hamdanahmed3565 use constructor to initalize final service objects instead of autowired...that might solve the issue
Great tutorial with expressive content, thanks for sharing such great article.
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
4 ай бұрын
Thanks a lot :)
Very well explained , watched full video . It will be a cherry on top if you can provides notes of spring security
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 🙏
Sir keep on ..dont get disappointed by negative comments..ur teaching is awesome.
@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.
Most awaited video❤
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.
Thank u sir
great content!
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
Best content on you tube.
thank you
What is better for creating rest api in spring boot webflux or by default spring provide web rest api
sir Perfect spring boot course perfect time pe Mila hai ❤
@EngineeringDigest
8 ай бұрын
🤝
Such underrated channel , you deserve more subscribers ❤ i am telling this from my heart.
@EngineeringDigest
15 күн бұрын
Thank you so much 😀
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
One of the best KZread channels ! By watching your videos a 10 year old kid can start coding 🎉
@EngineeringDigest
5 ай бұрын
Thanks a ton
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
5 ай бұрын
Concepts remain same
@himanshuram_ranjan
5 ай бұрын
@@EngineeringDigest okay will try to implement the new way after watching your video. Thanks
Nice tutorial. This video was bit overwhelming
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?
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
sir plz next new video for incease knowlauge of main.Thank u? 👌
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
Ай бұрын
check description, you can also add this property for circular dependency.
@SaeelDhatrak
Ай бұрын
@@EngineeringDigest Ok
Hi Vipul ... WebSecurityConfigurerAdapter does not exist in Sping Security 6 (SpringBoot 3 and above), Could you please update this tutorial.
Make more video ❤
WebsecurityconfigurerAdapter is depricated now....make video on current security scenario.....u taught it very well
@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
Ай бұрын
@@davendrabedwal830 what should be the java version in pom? for 2.8.17 because when i changed the version it cause an error
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
6 ай бұрын
I think it's related to Spring Security versioning problem
@user-wx3xj3ig8l
5 ай бұрын
@@AnantaAkash.Podder which version your are using ?
@user-cv1gr1kg8k
4 ай бұрын
you can check out latest version of spring security 6.2 on medium article.
how you explain i started loving you dude. thank you very much
Please make spring security video with spring boot 3 and new classes like security filter chain and AuthenticationManager
please make a video in JWT authentication
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
19 күн бұрын
username same nahi ho sakta kyunki unique="true" hai
timestamp 8.02. Sir, ConfigurerAdapter is deprecated now. Please use latest version
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()); }
bhaiya new video kab aane wali hai ?
🌟🌟🌟🌟🌟
Brother github sourcecode link is not opening
after adding the dependency and using password in basic authorisation there's still error of unauthorised in postman what to do?
@omanshkalra1278
10 күн бұрын
Just close the tab you are using on postman and add a new request or a new collection.
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
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
3 ай бұрын
@@keshavdeosharma7222 can you share this security code using SecurityFilterChain for this project
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
8 ай бұрын
thank you so much
@EngineeringDigest can you provide the PPT file for the future reference
When i am updating the username i am getting internal sever error ? is anyone here facing same ?
Sir , which version of spring you are using ,I'm unable to extend WebSecurityConfigurerAdapterClass and its methods 😔
@ChetanRawattunein
7 күн бұрын
It's deprecated in Spring 5 & above
Sir, your video is awesome.... But you take a long gap to upload a next one!😂
@EngineeringDigest
8 ай бұрын
The reason is in your comment itself 🤝
@User-student-404
8 ай бұрын
bcz video is awesome @@EngineeringDigest ❤
@user-cv1gr1kg8k
4 ай бұрын
it will be great if u could shorter the gap. @@EngineeringDigest
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
Ай бұрын
keep watching the video, we skipped the public controller which can be used to add new users
@rizzron
Ай бұрын
@@EngineeringDigestI am able to create user but the password encryption is not working while saving the password in database.
getting 401 or near to 403 error in postman sir how can i resolve that?
@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
Please make LLD videos in java
30:00
@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.
Why my postman and MongoDB atlas is out of sync. Their datas are different.
when next video will come vipul bhaiya👀❤
@EngineeringDigest
6 ай бұрын
jan-feb, stay tuned
sir, screen text is not visible. Plese increase the the size
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
24 күн бұрын
bro resolve hua ??
@nitishah5879
23 күн бұрын
i am also not able to login even after providing the credentials
@scratchworld6599
22 күн бұрын
@@nitishah5879 bro after making public controller your issue will be resolved
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
Ай бұрын
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.
If sidhi baat no bakwaas had a face. It would be Vipul Sir
Unauthorised error on postman ...for inserting a user .and all other calls.
@rold7256
14 күн бұрын
hua bhai resolve
@nikhilchoudhary2955
8 күн бұрын
@@rold7256 Same bhai nahi hua resolve, any way?
@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
Sir java aati h muje direct spring boot start kru ?
@EngineeringDigest
7 ай бұрын
yes
Please upload source code sir
WebSecurityConfigurerAdapter is going deprecating. any comment on this and please make complete explianation video with JWT with fliters as well
@EngineeringDigest
2 ай бұрын
check previous video in the same playlist
@Uzair_Anwar2299
Ай бұрын
@@EngineeringDigest I didn't get any video in the playlist with jwt implementation. Can you share the link here please
Circular dependency error aa raha hai please make video with newer version of spring security
@EngineeringDigest
Ай бұрын
check description
@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
Ай бұрын
Issue solved. Thanks
Please use latest version
@EngineeringDigest
6 ай бұрын
Ok, I will use Spring Boot 10323
bhaiya mera code nhi chl raha 38:22 se postman me unauthorised bata raha jabki sab code follow kar raha hoon 😟😟😟😟
@shrutiraval6806
16 күн бұрын
how can you that solve this error? i also getting the same error
@scratchworld6599
15 күн бұрын
@@shrutiraval6806 continue watching the video he will teach about public controller after making that your problem will be solved
@rold7256
14 күн бұрын
@@scratchworld6599 bhai mera fir bi aa rha sare call pe 401 forbidden error
but spring security 5.7 se jyada ho toh deprecate ho gya hai
@EngineeringDigest
Ай бұрын
ok
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
9 күн бұрын
🤝
@PrathamMakwana-wr5lv
6 күн бұрын
still getting the 401 and 403 error
@utkarshshrivastava6571
6 күн бұрын
@@PrathamMakwana-wr5lv same bro ..
@RAHULVERMA-o1m
Күн бұрын
@@PrathamMakwana-wr5lv check your postmen if you select Basic auth in authorization. Then set authorization to NO AUTH
Please JWT bata dete
@EngineeringDigest
3 ай бұрын
Coming soon
mera unauthorized aara
@nitishah5879
23 күн бұрын
thik hua ?? mera bhi wahi araha
@Himanshu-vi1jv
22 күн бұрын
@@nitishah5879 haa ho gya
@AnshulyouT
17 күн бұрын
@@Himanshu-vi1jv kese hua?
@shrutiraval6806
16 күн бұрын
@@AnshulyouT same issue solve hua?
@AnshulyouT
11 күн бұрын
@@shrutiraval6806 nahi apka hua?
Where can i connect you @Engineering Digest for the doubts ?
@EngineeringDigest
5 ай бұрын
Discord
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