Posts

Current progress

 Algorithm playlist : abdul bari - greedy algorithm vdo DSA using java : telusko 4 week placement coding question: hacker rank

Spring Security - Java JWT

Image
 JWT - JWT token consists of these 3 values AUTHENTICATION : check the identity i.e validation [user is valid or not ] AUTHORIZATION : check weather the user is authorized to access the resource which he is demanding. Steps for creating spring security project: - resourse . java brains youtube channel 1. add dependency : spring web ,spring security 2.create SelfUserdetailservice class which will be extending UserDetailsService class from spring security.core library.    In This class we will override methods of UserDetailsService such as  loadUserByUserName....So now this method will return the user  which will also come from spring security library of User type having username, password ,roles list . So we can also create seperate class extending User class or we can directly return the user from this loadUserByUsername method.   3. Create security configuration class which extends WebSecurityConfigurerAdapter class and annotated with @EnableWebSecurit...

Durgesh - Exam Portal Project using Spring Boot and Angular

Image
 > Flow : Have to start from here 🔴Coding Login at Backend using JWT Authentication Spring Security | Spring Security | Examportal #13 Issues faced :  1. Infinite recursive json was recieved while posting user data to database. https://stackoverflow.com/questions/30892298/infinite-loop-with-spring-boot-in-a-one-to-many-relation 2.  You can annotate with @Service  an implementation  and autowire the interface. Spring will check for any object implementing this interface.

Angular - Q&A

Image
  bootstrapping [when angular app runs initially] lifecycle types of directives : package.json ng new <app-name> component -> typescript file Also called annotation or meta data. Angular Architecture. -> ROUTING Implementation: View          <  -- >.html file <  ---  > .Routing.ts File  routerLink instead of href router-outlet : division of page where the routerLink component will be loaded. path & component : in routing.ts file  Routing can also be done from Component (  .ts File) :  -> LAZY Loading : on-demand loading OR loading what is essential and necessary. Implementation in Angular :  break project in form of child/multiple components . loadChildren : in routing.ts file provide path for the component for which u want lazy loading. > Services: Ex : Validation / Loggers / HTTP ... implemented inside .Module.ts file  initializing the dependency directly without new keywo...

schedule

 - iscs (Sam)-  Client -  TIBCO - 09/02/2022 -> 4 pm  - Sanjay -  Client  :  https://www.worklogix.com/ (Chennai) - 10/02/2022 -> 5 30 pm -Poonam -Company Website-   http://www.2020ai.ai/  - (Pune) - Springboot -angular - java - main UI - 6: 30 phonic - delloite -   10 /02/2022 -> 12 00 pm

Java and spring - Interview Q&A

Image
  è  Spring interview questions  Ø Marker interface : is the interface that doesn't has any constant or methods inside it. So it is a kind of meta data about the class which tells what extra the class will do. Example : Cloneable, serializable , repository in spring interfaces. Using this we can override clone method from object class. Ø Why we need marker interface? Coz it adds extra features , Ex: if we want to override clone method  in above student class then it cant be done without implementing Cloneable interface, it will give cloneNotSupportException.   è 5 most accuring annotations : Ø   BeanCreationException: in case of circular dependency we get this exception . Ex A is dependent on B and vice versa so while creation of bean it will fail. Ø   NoSuchBeanDefinationException : if the bean which is being autowired is not annotated with @Component / its bean is not instansiated in Spring container. Ø   NoUniqueBeanDefinationsExc...