In this post we will learn how to create spring boot application/project . Now we are going to create our
Continue readingCategory: spring
Error creating bean with name ‘classname’: Scope ‘session’ is not active for the current thread
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘DBController’: Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not
Continue readingjava.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
When i run my project ,I get exception ClassNotFoundException : org.springframework.web.context.ContextLoaderListener java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1858) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1709) at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:506) at
Continue readingSpring MVC EXample
Step 1: Create a hello controller HelloController.java package com.javaproficiency.demo; import org.springframework.stereotype.Controller; import org.springframework.ui.ModelMap; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; @Controller @RequestMapping(“/welcome”) public
Continue readingSpring Tutorial
1. Spring MVC Example 2. Spring Autowired 3. Spring Web services 4. @pathvariable 5. Return Json 6. PUT JSON 7.
Continue reading