Wrapper is nothing but a DTO , would be much simple if use that terminology, And instead of having full parametrized constructor , consider using all args constructor annotation
why are we implementing exception handling in both UserRestImpl and in UserServiceImpl, would it be enough if we implement just at one class ? please clear my doubt.
@@nhodoan8318 the funny thing is you can encode the password using Bycript encoder or any encode, so I think it is kind of useless to create a separate wrapper class, also u can just show the data without password instead by using JPA or query and just add @AllArgsConstructor and @NoArgsConstructor into User and its done.
Thanks sir for the content Im having issue with namedquery .. l did everything as you did but it showing errors in the User entity Can you help Its saying cannot resolve u
Hi! I added my Gmail credentials and other stuffs in app.props file for Gmail. SMTP. but I got error failed to connect. I checked my Gmail setting for enable low secure app access. but now Gmail has removed those type of settings. so, any alternative ways for mailing purpose?
console show :- org.springframework.mail.MailSendException: Failed messages: java.lang.ClassCastException: class org.eclipse.angus.mail.handlers.text_plain cannot be cast to class javax.activation.DataContentHandler (org.eclipse.angus.mail.handlers.text_plain and javax.activation.DataContentHandler are in unnamed module of loader 'app'); message exception details (1) are: Failed message 1: java.lang.ClassCastException: class org.eclipse.angus.mail.handlers.text_plain cannot be cast to class javax.activation.DataContentHandler ( and database changing value how to fix exception
Wrapper is nothing but a DTO , would be much simple if use that terminology, And instead of having full parametrized constructor , consider using all args constructor annotation
Why you are not creating dto after @RequestBody why creating hashmap only ?
Great content. Keep it up
Thanks a lot dear sir.
why are we implementing exception handling in both UserRestImpl and in UserServiceImpl,
would it be enough if we implement just at one class ? please clear my doubt.
Hi can i ask you ??
it would be more clean if you add just Service class.because you'll already call the method on the Rest class
Thank you
for getting the users why we created seperate wrapperclass?can u explain
because, the wrapper class doesn't display the password while the User class expose the password.
@@nhodoan8318 the funny thing is you can encode the password using Bycript encoder or any encode, so I think it is kind of useless to create a separate wrapper class, also u can just show the data without password instead by using JPA or query and just add @AllArgsConstructor and @NoArgsConstructor into User and its done.
Seguindo aqui.... Nao consegui usar o Mailinator.... mas os emails estao sendo enviados... esei outra site de email e funcionou !
Next house rent management with Java + SQL please
Hello Guys, I cant generate JWT Token and I write The code as it is written, I dont know where is the Problem
Please Help Guys
Thanks sir for the content
Im having issue with namedquery .. l did everything as you did but it showing errors in the User entity
Can you help
Its saying cannot resolve u
Hey did you build the 2 vedio in the same playlist ?
when I test in postman, " localhost:8081/user/get " gives 200 Ok and 1[ ] .my database contain 5 users details are present. How can I solve this?
Less secure app is disabled now.. what is an alternative option?
Check this link for alternative option:
btechdays.com/#/blogs/view-blog/21
@@BTechDays Thankyou
sir where is the part of front end
sir i am having problem in generating token it shows ({"message":"Bad Credentials."} 400 Bad Request )can you please help me out.
I faced same issue, solved it by changing the secret to some complex string.
@@ShabbirHussain395 like what sir?
@@fakewars9395
private static final String JWT_SECRET = "t3pCSx2wx1ExbQ5z43XXB8my/KR24aon4EH/niU9iZi1I3S69rk1QhlMFFsTrZIY";
Hi! I added my Gmail credentials and other stuffs in app.props file for Gmail. SMTP. but I got error failed to connect. I checked my Gmail setting for enable low secure app access. but now Gmail has removed those type of settings. so, any alternative ways for mailing purpose?
I am also facing same issue,have u got any solution?
Not getting approved mail once enabled then disabled then enabled😅
disabled message does show if done after enabling again.
Front end ka code kider he?
how to use namedquery for mysql for userwrapper
It's already shown in the video series.
Watch the complete playlist.👍
Sir, please Give me this project github link
I am getting 403 code in get api even after changing the role to admin, please help
Have you solved it?
@@StephyVS-p8lSame problem, haven't found a solution yet?
me too
same issue please an answer
@@soufianehamidoune2793 sure me too
13:18
console show :- org.springframework.mail.MailSendException: Failed messages: java.lang.ClassCastException: class org.eclipse.angus.mail.handlers.text_plain cannot be cast to class javax.activation.DataContentHandler (org.eclipse.angus.mail.handlers.text_plain and javax.activation.DataContentHandler are in unnamed module of loader 'app'); message exception details (1) are:
Failed message 1:
java.lang.ClassCastException: class org.eclipse.angus.mail.handlers.text_plain cannot be cast to class javax.activation.DataContentHandler (
and
database changing value how to fix exception
Just remove the version from the following dependency.
org.springframework.boot
spring-boot-starter-mail