1. Difference between compiler and interpreter? 2. Why string is immutable? 3. What is string pool? 4. Does java has concept of pointers? 5. What is hashmap?
Hi You might get tomcate 404 error when accessing localhost:8080 what option you can use here is Solution Go to server configuration Go to Server location and select "Use Tomcat Installation" This should resolve you error.
1. How to delete multiple data using Rest API? 2. What is aggregation, Inheritance and Composition give example? 3. What do you know about OOAD, SAS Analysis and BI tools? 4. What is a servlet? 5. What is Hibernate? 6. What is Spring? 7. Tell us about Spring Workflow?
What is Spring Framework? How Spring Framework inject Dependency? Why to inject dependency? What is IOC? What is difference between Bean factory container and ApplicationContext ? How to setup Spring Framework?
It is a generic term used in Spring framework. Since we know Spring framework get control from class which needs dependency i.e Inverison of Control. So all this happens in IOC Container. Important IOC Container is ApplicationContext whose you we saw in Hello World Spring Framework Application. Spring IOC container is very important as it will create object and configure them. Types : 1. Bean Factory 2. Application Context Container
What is Spring Framework? Spring is an open source framework and inversion of control for Java Application. Spring is dependency injection framework. In an enterprise application many classes depend on many classes where we can take leverage using this framework by injecting this dependency. Example consider we have a pizza process for creating pizza Class Pizza{ Pizza(){ ……………….Steps for Making Pizza } } Lets say we have OnlineRestaurantService{ CookService cs=new CookService(Pizza) } Here we are passing pizza dependency to CookService in OnlineRestuarantService class. In future we can pass Hotdog service also in place of Pizza. So this all can be done by Spring Framework. How can we let CookService know to inject pizza as dependency or Hotdog as dependency. Well using annotations 2 popular annotations are @component and @Autwired @component tells manage OnlineRestuarantService dependency and @autowired tells you need to look for Pizza dependency for Cook Service. We will see all anno...
Error: Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStoreException Well what you could do is put your bean xml file outside your package since frameword is looking it inside package. path ApplicationContext context = new ClassPathXmlApplicationContext("src/main/resources/beans.xml"); Else give path inside package example
Path for learning spring is 1. Spring framework. 2. Spring MVC 3. Spring Boot Before beginning to what is Spring Framework we will learn what's the library to get all help from. http://Spring.io it is a library where u can find all help documents, extensions related to spring. What is Spring Framework? Spring is an open source framework and inversion of control for Java Application. Spring is dependency injection framework. In an enterprise application many classes depend on many classes where we can take leverage using this framework by injecting this dependency. How to setup Eclipse for Spring 1. Download Jdk 7 or 8. 2. Download Eclipse. 3. Download CommsApache jar https://commons.apache.org/logging/ 4. Download Spring jars https://repo.spring.io/release/org/springframework/spring/5.0.0.RELEASE/ (download dist.zip) 5. Create a new Java Project and add CommsApache.jar and Spring jars. Create Structure like below Main class package com.it.Hellow; import org.springframework.con...
Linux logs can be viewed /VAR/LOG directory this contains plain text text files. You can view logs using ls command. You can also view logs via dmesg, which prints the kernel ring buffer. It prints everything and sends you to the end of the file. From there, you can use the command dmesg | less to scroll through the output.
The /etc/passwd file contains a list of all the system user accounts, along with some basic configuration information about each user. Anil:Test@123:501:501:Anil Kumar:/home/anil:/bin/bash Each entry has seven data fields, with each field separated by a colon. These fields are: The username The user's password The user's system user ID number The user's system group ID number The user's full name The user's default home directory The user's default shell program
If you get this error Initial SessionFactory creation failed . org . hibernate . HibernateException the issue is you are using an old way to configure the file and hibernate can't determine the dialect what you can do is use new way to resolve this.