I'm using Spring Tool Suite and learning Spring. I've created a Spring Start Project. The project wizard ask for the version of Boot. I'm just practicing Spring and doing output to the console. Why do I need Spring Boot? There's not way to create a s
I have springBoot standalone application. I used @SpringBootApplication, @ServletComponentScan annotations in my standalone application. All my components, beans getting initialized in spring container and prints in the application startup. Inside my
I am writing a library to provide some functionality that is shared between multiple different Spring Boot applications that I work with. I would like to do something similar to the auto-configuration that is provided by the many Spring Boot starter
We are working on a Spring-MVC project in which we use Maven as a dependency management tool, deployed on Apache Tomcat. Currently, we are also integrating Stanford parser, and adding the model libraries is increasing our WAR file's size from 192Mb t
Hi i'm using below code for find article using spring with plain hibernate. public List<Article> getArticles(int currPosition, int pageSize) { Criteria c = getSession().createCriteria(Article.class); c.addOrder(Order.desc("createdDate"));
I am new in ActiveMQ and I need to create spring boot aplication where are publis activeMQ queues. Therefore I created the simple SpringBoot application @SpringBootApplication @EnableJms public class Application { @Bean JmsListenerContainerFactory<?>
I have a working Spring application that contains a embedded Tomcat. As a executable war, it works fine. As I'm going to use AngularJ for the front end, it isn't very practical to have the Spring project in an executable jar, as I will do debugging i
related question I am sending message from REST API to SI message channel, which delegate to a sending message adapter. The message adapter send a message to TCP client. nothing needs to be return/response. My TCP client successfully received the mes
I am trying to send an email through my spring boot app. However, I am getting the following exception: Could not connect to SMTP host: smtp.gmail.com, port: 465, response: -1 The controller class is as follows : @RestController @RequestMapping("/ser
I am using Spring REST with Hibernate and I have developed a program in which data is coming from database calculate and it is updated into another table in database. But I want to run this program once in a day at a given time because I want to calc
I want to send a list from rest client to rest web service which will start a job in Spring Batch. Is that possible or must I save the list in database/flatfile before start the job and read the input values from database/flatfile? I guess someone po
I am new at Spring and trying to learn with tutorial. And I have a problem. I converted to xml based config to annotation based config. this is tutorial. And I receive HTTP 500 error. This is full stacktrace. SEVERE: Servlet.service() for servlet [di
hi all i am trying to build login form using shiro and spring mvc 3 i am getting following error 2015-03-06 17:42:05,097 DEBUG [org.apache.shiro.spring.LifecycleBeanPostProcessor] - Initializing bean [cacheManager]... 2015-03-06 17:42:05,098 DEBUG [o
I'm using Spring connecting to Sql Server 2008 R2 via JDBC. All I need is to insert a large amount of data to a table in the database as fast as possible. I'm wondering which way is better: Use Spring batch insert mention here Create stored procedure
public static UserDetail UserDetail.findUserDetail(Long id) { if (id == null) return null; return entityManager().find(UserDetail.class, id); } We are using spring Roo. Above is Roo generated finder method. Partial stack trace is as follows: Caused b
Why must Service, Controller or Repository have an Interface since only 1 class implements them? 2ndly Why is spring naming convention. Interface : ABCService Concrete Class: ABCServiceImpl .. Should it be more user friendly using the following namin
I'm exploring the possibilities of Spring Boot right now, and I'm at a slight impasse. I want to be able to run two Spring Boot applications at once, both on the same server, but at different paths (one deploys on /, the other deploys at /another-pat
Can someone please tell me why my email address is getting cut.. for testing we use email address like
[email protected] I have the following code: @RequestMapping(value = "/profilenumber/{email}", method = RequestMethod.GET) @ResponseBody public
I have the spring jars of spring-3.2.0.RC1.jar and trying to implement Apache ActiveMQ helloWorld program from tutorial given here. The xml configuration file is: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns:jms="h
I have an Interface with Component annotation and some classes that implemented it as follows: @Component public interface A { } public class B implements A { } public class C implements A { } Also, I have a class with an Autowired variable like this
I have an existing eclipse project (JAVA application), now I created a table in xampp - phpMyAdmin. In the project I need to implement all the queries and database in two ways: 1) JDBC 2) JPA and to choose one of them using the Spring mechanism. So I
I'm using spring ws 2.0.2.RELEASE I have a web service that creates a sales order Two of the elements in the SOAP call are dates: <ns3:requestedDate>2012-06-06T01:00:00.000+10:00</ns3:requestedDate> <ns3:orderDate>2012-06-06T10:25:09.681
In my web.xml page I have the 404 error mapped to a jsp page as: <error-page> <error-code>404</error-code> <location>/WEB-INF/jsp/errorPages/error404.jsp</location> </error-page> The redirect on 404 works fine. I get to
I am trying to find how to issue a call to the following restful service from JMeter: @DELETE @Path("/user") void removeUser(String userId); There are plenty examples on POST, GET, but I cannot find one for delete. Specifically, I cannot find a
I am trying to autowire some beans (for dependency injection) using Spring for a webapp. One controller bean contains another bean which in turn holds a hashmap of another set of beans. For now the map only has one entry. When i run in tomcat and cal
Hi I want to implement a web service on a remote application server that will perform write actions to the database. Another application running on another application server will be consuming those web services that are exposed. How would I go about
I was recently searching for an answer to a different question about load-time-weaving and autowiring and I remember coming across something like this, but I'm not sure how to configure it. Essentially, I have class instances created outside of my co
Attempting to follow this Java tutorial. About 63 pages in, you are instructed how to create a form ("New.jsp") to submit new events. When I try to visit the page, I get the following error: HTTP Status 500 - type Exception report message descri
Using Spring as Framework, if i need provide business logic's service to either JSP/Servlets(on Web Servers) or to Application desktop client or Mobile clients, the only way to accomplish the logic business(without EJB) in a remote server is through
Assume that we have Spring bean UserController with singleton scope. All my further reasoning is based on my assumption that "singleton" scope is almost similar to application scope i.e. we have only one instance for all users. If this is wrong