Top 8 Spring Properties You Should Know in 2024
HTML-код
- Опубликовано: 7 июн 2024
- Top 8 Spring Properties You Should Know in 2024
Join this channel to get access to exclusive courses all taught by Koushik:
/ @java.brains
Essential Spring Boot Properties Every Developer Should Know
This video covers eight of the most commonly used and important properties in the Spring Boot framework. Including server.port for configuring HTTP port, spring.application.name for setting the name of the Spring Boot application, spring.datasource properties for managing connections to databases, spring.jpa for configuring behaviour of Java Persistence API (JPA) provider, spring.jackson for customizing JSON output, server.servlet.contextpath for setting the context path as a prefix for HTTP request URLs, spring.security for configuring Spring security settings, and Management Endpoints for enabling and controlling the exposure of specific API endpoints using the Spring Boot Actuator. The video conveys how these properties make Spring Boot a highly flexible and configurable framework, making it essential for viewers, whether beginners or seasoned professionals, to understand their use.
1:27 - server.port
3:12 - spring.application.name
5:05 - spring.datasource.*
6:30 - spring.jpa.*
8:20 - spring.jackson.*
10:34 - server.servlet.context-path
12:08 - spring.security.*
13:44 - management.endpoints.web.exposure.include
17:05 - bonus: spring.threads.virtual.enabled
Should have been here with bookmarks from the start, Karthik. Next time, hopefully?
It'd be great to have a presentation on virtual threads
Oh yes, I'll be glad to know more about this virtual threads, it's buzzing at the moment.
It is, indeed. Will do
Yes please. Would love to hear more about virtual threads.
@@Java.Brainsplease share the link for virtual threads video.
Great content as always. Yes, please make video on Virtual Threads !
Hi Koushik, great video as usual.
A video on Virtual Threads would be a wonderful idea. Eagerly waiting for it.
Thank you so much.
So glad to know these properties.
Always felt their need but wasn't aware of. 😍
Thank you for such a wonderful video and an awesome explanation. I would definitely be glad to watch an explanation on virtual threads, in that in the context of Spring Boot 😊
Great Video as always, Yes We need a video about virtual threads!
On it!
Yes Virtual Threads please. It would be great to know its use cases, do's and don'ts,
Well Kaushik, liked this content. Loved to watch your tutorials on Virtual Threads !! A big YESSSS !! for you tutoring them. Waiting for it. By the way, you have the knack of engaging your subscribers/followers continuously with one thing or the other. Great work mate !! (I let you know, why I addressed you, like this). Just passing on my kudos to your continuous efforts in keeping with latest developments in the Technologies, in general and Java in particular !! THANKS !! 👌👍🙂
This channel is GOLD!
Virtual threads please.. 🖐
Yes, Koushik. It would be awesome to have a session on virtual threads. Planning to use on Async calls..Especially want to know where they should not be used. Thanks.
Can you Bring Full in Depth Tutorial on Spring for us ? because, I have watched some of your videos, and they are quite impressive, unique, and easily understandable.
thank for sharing 😍😍Kaushik , always wait for this valuable session
Great content! Expect your virtual thread video soon.
hey java brains!! i love your videos y practice my english and a learn java with you !! keep doing this you are amazing! greetingsss
Indeed nice explanation.. also nice soothing music in background :)
Yes.. Please do an video on virtual threads.. As always Thank you for all your videos
Thanks, great video!. Yes, please make a video about virtual threads.
Great content to remember forever! thanks
Thank you for all , and its very intersted thread subject
Another excellent piece from Koushik
Thanks!
yess yess yess.... please do a detailed video on virtual threads
Great Video ! Thanks
Great video!! thank you
Спасибо за такую эффективную схему!
Great video...please make a full video on Virtual Threads.
Yes, please make a video on Virtual Threads!
Would love to have your tutorial on Virtual Threads!
Great video. Pleaes make a video on virtual threads in java and spring boot
Yes, please make video on Virtual Threads...
You are awesome. Thank you a ton
yes - it will be usefull video about virtual threads
can you give a virtual thread explanation or a tutorial please great info learning new things everyday from your videos Thank you very much
Virtual threads - yes, definitely please.
Yes for Virtual Threads series.
Also Java 21 and Spring Boot 3.2 too
You look very stylish with that white sweater on and blue polo under!
Please do the session on virtual threads.
Thank you.
Yes needs the virtual threads
Yes please make a video on virtual thread
Hello koushik, One more knowledge session from you. if possible pls provide class on virtual thread
👍
excellent tutorial. one thing that bother me though is that server.servlet.context-path seems to be of no use as the context of REST API requests is set typically in controller. but setting different contexts when deploying several apps with different versions seems to be really handy
Thanks for great content. Need virtual thread session.
Coming soon
Please upload video on Virtual Threads. Thanks
Very knowledgeable video
Glad you think so!
Kindly make a video on Virtual Threads🎉❤
A video explaining Virtual Threads please. It’s all over the place and I don’t understand a thing with regards to what we have actually achieved with this.
Aye Aye Capitan!! we need Virtual threads tutorial! Thanks!
On it!
Reg the spring.application.name, only if it is used as log file name I would be able to segregate logs like that or do you mean different strategy?
please please please please make a detailed video on virtual threads
Hey Kaushik, please create one video on Virtual Threads😃
please make a video on virtual threads
Please create a separate vedio on virtual threads. It would be really healpful.
please make video on virtual threads
YES PLEASE!! VIRTUAL THREADS VIDEO!!
Please create detail tutorial video for Virtual Thread with Spring Boot
Sir, please make a video on dsa full playlist on java.
yeah pls video on virtual threads. If it actually manages the threads better why not make it a default?
Great
Can you Bring Full in Depth Tutorial on Spring
please
I love your videos, but please, smile more! 😊
Especially when you start the video; afterward, your passion really sets a positive tone.
please make video tutorial Java Virtual Thread on Demand
Need a Virtual Threads tutorial please. 🤩
Yeaww need to learn virtual threads along with basic concepts like from real basics. Yours, noob in spring world
virtual threads please
Virtual threads❤
Virtual Threads please.
I am also looking for virtual threads tutorial
Want to know more about Java virtual threads
Make a tutorial for virtual threads please
Yup, will do
+ virtual threads
Hi
response to ClientA using api1.
To summarize the flow:
1. **ClientA to ClientB (api1):**
- ClientA initiates a request to ClientB using api1.
2. **ClientB to ClientC (apic):**
- ClientB forwards the request from ClientA to ClientC using apic.
- The forwarded request includes a callback URL (callbackapi1 of ClientB) and a request ID for future communication.
3. **ClientC processes the request:**
- ClientC receives the request from ClientB.
- ClientC sends an acknowledgment (ACK) to ClientA.
- ClientC extracts the callback URL (callbackapi1 of ClientB) and the request ID from the request body.
4. **ClientC to callbackapi1 of ClientB:**
- ClientC sends a response to the callbackapi1 of ClientB using the extracted callback URL (callbackapi1 of ClientB) and the request ID.
- The response includes necessary information, such as the request ID and data.
5. **ClientB callbackapi1:**
- ClientB processes the response from ClientC received through callbackapi1 (callbackapi1 API of ClientB).
- Updates the database performed based on the information received, typically using the request ID and data.
6. **ClientB responds to ClientA:**
- ClientB api1 waits for the callbackapi1 update.
- After completing the update, ClientB sends a response to ClientA using api1.
How to do this senario in spring boot.
My clientB can deploy multiple server
can you please provide best solution
Virtual Threads
You said database password will not be in properties file on production.
Then where should we define database username and password?
The documentation lists around 20 options to choose from for defining external properties. My company policy is to store them to a Conjur vault. At startup the summon command reads the passwords and saves them in the application environment and our properties reference the environment variables. The spring config server is one of the other options to choose from.
@@JamesStansell yes I got it.
Thanks for looking into my comment and reply.
@@anketpatel2312 you're welcome.
Virtual Threads- Neki aur puchh puchh!
Virtual threads video 🤚
Noted!
Top Spring Annotations in 2024:
🔴 @Component
🔴 @Service, Repository, Controller
🔴 @Autowired
🔴 @Value
🔴 @Configurartion
🔴 @Bean
🔴 @Transactional
🔴 @RequestMapping
🔴 @RestController
🔴 @SpingBootApplication
Spring is the reason I left Java development. No point in having a language with only one giant framework available. That, and Java's terrible security track record and lack of modern language features, like async/await, dynamic hardware thread use, a good package system, etc.
server.compression.enabled=true (you can also use min-response-size to tell when to use compression)
Virtual Threads
Will do! :)