For those who are getting error while running the application. At 7:38 Add these 2 lines in application.properties spring.h2.console.enabled=true spring.h2.console.path=/h2-console
hey! can you explain the "response" on line 73 in the controller when I'm writing the same code, IntelliJ is suggesting me that it can't resolve symbol: 'response' Please help!
I"v found a solution .... for methode redirectToOriginalUrl(shortLink) add another parameter for this mehode redirectToOriginalUrl(@PathVariable String shortLink, HttpServletResponse response) and after use parameter response for redirect url
I was just looking over the main parts of video , hope I didnt missed anything, At @29:51 why are we saving different short urls in db for same input url, shouldnt we check if originalurl already exist in db then dont insert in DB, can you please correct me if my understanding is wrong or am I just missing something here
Please check we have a logic to expire the generated url automatically after sometime. If you don’t want it to expire until the generated url exists in the datastore, you can disable the logic to automatically expire the url
There is no compulsion on using one of the available hashing algorithm like the one we used in the video. You can write you own tiny algorithm to convert the urls into smaller hashed value which is 6 characters long.
For those who are getting error while running the application. At 7:38
Add these 2 lines in application.properties
spring.h2.console.enabled=true
spring.h2.console.path=/h2-console
Thanks man
Thank you so much!
Thanks you Much I have implemented this project completely.. I have used mysql workbench.... I have learned a lot..
can you share your github link please?
Small suggestions use lombok for getter setter toString allargs constructor and no args constructor
Superb ..You are teaching.. very good.
Thanks a lot
hey!
can you explain the "response" on line 73 in the controller
when I'm writing the same code, IntelliJ is suggesting me that it can't resolve symbol: 'response'
Please help!
Instead of response use httpServletResponse
I"v found a solution .... for methode redirectToOriginalUrl(shortLink) add another parameter for this mehode redirectToOriginalUrl(@PathVariable String shortLink, HttpServletResponse response) and after use parameter response for redirect url
Great explanation!!! Really like your approach of doing. Keep making such informative videos pls🙂🙂
Thank you! Will do!
Thanks bro for the video! Crisp and clean explanation!
Glad it was helpful!
I was just looking over the main parts of video , hope I didnt missed anything, At @29:51 why are we saving different short urls in db for same input url, shouldnt we check if originalurl already exist in db then dont insert in DB, can you please correct me if my understanding is wrong or am I just missing something here
i think he wants to create unique short urls each time
Thanks you so much Brooooo! My project was about this.
Nice explanation
Is there any reason why you are annotating @service with the service interface and @component with the service implementation?
No Specific Reason. Instead of this approach you can leave interface without any annotation and annotate the service class with @Service annotation.
Very good!! thank you very much!
Glad you liked it!
hii I am not getting Apache common & Guava dependency suggest alternative for that ?
Create project without these annotation. After creation, search these dependecies in maven repository and add in the pom.xml of your project.
why it's not working anymore? always receiving the message "error": "Url does not exist or it might have expired!"
and this error too {"status":"200","error":"Url Expired. Please try generating a fresh one."}
Please check we have a logic to expire the generated url automatically after sometime. If you don’t want it to expire until the generated url exists in the datastore, you can disable the logic to automatically expire the url
how to customize the generated short url ? Like i need only 6 character in generated url ? can you help me ?
There is no compulsion on using one of the available hashing algorithm like the one we used in the video.
You can write you own tiny algorithm to convert the urls into smaller hashed value which is 6 characters long.
unable to use murmur hash in springboot