
๐Java Spring Boot & Microservice Realtime Project development CT๐
31.1K subscribers
About ๐Java Spring Boot & Microservice Realtime Project development CT๐
The next 2months *Java Realtime Project development with Spring Boot & Microservice*, will start, 9Jun, 10AM *Register here* : https://docs.google.com/forms/d/e/1FAIpQLScxd-5_Rz585bOWniWldI39-IPsKGu8cv3mg2k8QzJ8uu67Vw/viewform?usp=dialog Here we do end-to-end real-time project development, using modern software development practices & AI tools. Your knowledge level would be equal to 1-2 years working professional in IT. ๐
Similar Channels
Swipe to see more
Posts

Hi Team, *Please note the task & recordings are updated in google drive:* โ *Task form: (Click Edit your response)* https://docs.google.com/forms/d/e/1FAIpQLSdkQpS5Z3vxgOFZxajE0eL3nVM9ql0bSLgKrCvbSF5qcMlyqA/viewform?usp=dialog โ *All session recordings:* https://docs.google.com/document/d/1JEntDASPUmUuCrCPZ0PAMBMP7iDEAICtBOt4EBv14CA/edit?usp=drive_link โ *All session Material* Includes IDE Shortcut https://drive.google.com/drive/folders/1TEbntq3_oItAAObExFcGZtiA0dlIK7MI?usp=sharing

*4 Tasks for today: 12Jun* โ 1. Get strong understanding of Core Spring concepts: Spring Container, IOC, Dependency Injection, Dependency Lookup, Container types, Spring Bean โ 2. Make MathServiceImpl a Spring Bean, then dependency inject it with field injection & constructor inject to controller. โ 3. Perform Dependency Lookup. Controller looks up service by dependency lookup. โ 4. Let spring manage predefined "java.uil.Random" class object as Spring Bean. ============================ 1. Get strong understanding of Core Spring concepts: Spring Container, IOC, Dependency Injection, Dependency Lookup, Container types, Spring Bean Prepare strongly on this, and also practice by drawing in diagram. Spring Container: The core component of Spring that manages the lifecycle and configuration of application objects (beans). IoC (Inversion of Control): A design principle where the control of object creation and dependency management is transferred to the Spring framework. Dependency Injection (DI): A technique where Spring automatically supplies an objectโs dependencies rather than the object creating them itself. Dependency Lookup: A process where objects retrieve their dependencies manually from the Spring container. Container Types: Refers to the types of Spring containers like BeanFactory and ApplicationContext that manage beans and configurations. Spring Bean: An object managed by the Spring container, created, wired, and maintained according to the application context configuration. --------------------------------- 2. Make MathServiceImpl a Spring Bean, then dependency inject it with field injection & constructor inject to controller. - On MathServiceImpl add @Component. Notice spring creates the object. - In controller define field: private MathService mathService; - For field injection add @Autowired. Notice spring give the reference to mathService & we can use it in method. - For constructor inject, @Autowired is optional. You can add to constructor or remove it. public MathController(MathService mathService) { logger.info("MathController initialized.*****"); this.mathService = mathService; logger.info("mathService: {}", mathService); } Now note there are several annotations, which makes java class as spring bean. they are all linkedin to @Component. They are @Service, @Controller, @RestController, @Repository, @Configuration Now for MathServiceImpl, use @Service - since it represents business logic. ----------------------------- 3. Perform Dependency Lookup. Controller looks up service by dependency lookup. Dependency Lookup dependency object will not be given automatically, rather, you need to ask & get. In controller we need to ask for MathServiceImpl object from spring container. How to implement Dependency Lookup Spring has an object of ApplicationContext, which is available in spring container. Using this object, we can access any other object from spring container. In MathController, we need to ask for MathService We will dependency inject ApplicationContext object in MathController private ApplicationContext applicationContext; public MathController(ApplicationContext applicationContext) { logger.info("MathController initialized.*****"); this.applicationContext = applicationContext; logger.info("ApplicationContext: {}", applicationContext); } Using this ApplicationContext object we can lookup the MathService object. getBean mathService = applicationContext.getBean(MathService.class); ================== 4. Let spring manage predefined "java.uil.Random" class object as Spring Bean. In order to achieve this we need to use @Configuration & @Bean Create AppConfig class like below @Configuration public class AppConfig { @Bean Random makeRandom() { return new Random(); } } - Note @Configuration is also a @Component, when spring creats object of this, then it reads all methods with @Bean, and invokes them. - Whatever those methods return, spring starts managing them in spring container. - You can now dependency inject & dependency lookup those. - Inject this Random into Controller & experiment with it.

Team, Please note that is Java Developer Trainee program. You would be expected to mention, that you joined as Java Developer Trainee with us. and for duration of 2months, worked on this project. That we will be developing together over these 2months. More details about company, and what to highlight over LinkedIn, we will discuss it on Week2Day1.

Hi Team, Please note all the members who have enrolled so far. Thanks for joining it, it would be great 2 months together. Please note that you would be added to a separate WhatsApp group over weekend. *And over weekend(14-15Jun) below actions will happen:* โ You would be added to separate WhatsApp group โ You would be issued Trainee Offer Letter โ We will share you google meet link, for LIVE connects from Week2Day1.

Hi Team, Please find updates of today's session: Topic: *Day4 - Deep Dive into Coding Spring & Spring Boot Part3 - 2Months Enrolment [12Jun]* โ *Recording:* https://www.youtube.com/live/QO3hT5DN6tA โ *Session notes* https://docs.google.com/document/d/19Gh6_r9ui_SIrx2tqqMQPFC6HS_mXJgLM6nGg-iVf2s/edit?usp=drive_link โ *Attendance Code*: 7171 https://docs.google.com/forms/d/e/1FAIpQLScH5DcUg5FSZghK1hLpNEDLlYXaCabyr_Js8N1e7MUK8sQzOQ/viewform?usp=dialog

For those rest of the members, planning to enroll, *Please think through, and request you to enroll max by tomorrow(Fri, 13Jun) EOD.* Since all the members who join till Fri EOD, we will share those details with HR team, for processing offer letter over weekend. โ *Here is the enrolment link for 2months Java Developer Trainee program:* https://pages.razorpay.com/pl_Qfx5SDnI3olxdk/view *Below are key pointers:* โ End-to-end project development, performing tasks in project domain, design, LIVE coding, tools, end-to-end exposure of working in IT. AI pair programming & modern development practices. โ Add this project in resume. & strong explain during interview โ Your designation: Java Developer Trainee. You can update on LinkedIn โ You would be issued Trainee Offer Letter, Completion Letter โ You would get recording access, so you can revisit the topics for deeperย understanding.

๐Hi Team, Good morning, Today is Week1Day5. We will have Important discussions. *Topic: Core principles of IT Career Success + Spring Boot Features + End-to-end working in IT.* โ 13Jun, 10AM LIVE here: https://www.youtube.com/@tausiefs *Very important discussion. See you at 10:00AM.*

๐Hi Team, Please note tomorrow is final day of week1. Week1Day5. *We will discuss Spring Boot Features, and end-to-end process of software development in IT.* How Agile, JIRA, Dev, Git, Branching, Dev, Dev testing, QA testing, tools used.. end-to-end process clarity we will discuss. Please note tomorrow's connect will happen on Youtube itself, like past 4 days. โ 13Jun, 10AM LIVE here: https://www.youtube.com/@tausiefs Keep hand's on coding on day-to-day topics. See you tomorrow.

Hi Team, โ *Here is the enrolment link for 2months Java Developer Trainee program:* https://pages.razorpay.com/pl_Qfx5SDnI3olxdk/view *This program will gain you knowledge equivalent to 1-2 years working professionals. And your current knowledge will upgrade by 80% for all entry level professionals.* *Below are key pointers:* โ End-to-end project development, performing tasks in project domain, design, LIVE coding, tools, end-to-end exposure of working in IT. AI pair programming & modern development practices. โ Add this project in resume. & strong explain during interview โ Your designation: Java Developer Trainee. You can update on LinkedIn โ You would be issued Trainee Offer Letter, Completion Letter โ You would get recording access, so you can revisit the topics for deeper understanding.

Hi Team, we are LIVE. *Day4: Deep Dive into coding Spring & Spring boot* https://www.youtube.com/watch?v=QO3hT5DN6tA Let's Go ๐