Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
functional-tests Next is 19.0.0.Beta1-SNAPSHOT Oct 3, 2019
src [WFLY-12594] Updates Quickstarts docs, replacing references to Java E… Sep 26, 2019
README.adoc WFLY-11228, JBEAP-15704: Update references to Developer Studio to use… Oct 23, 2018
pom.xml

README.adoc

spring-kitchensink-basic: Kitchensink Example using Spring 4.x

The spring-kitchensink-basic quickstart is an example of a {javaVersion} application using JSP, JPA and Spring 4.x.

What is it?

The spring-kitchensink-basic quickstart is an example of a {javaVersion} application using JSP, JPA and Spring 4.x in {productNameFull}. It includes a persistence unit and some sample persistence and transaction code to introduce you to database access in enterprise Java:

  • In the jboss-as-spring-mvc-context.xml file, the context:component-scan and mvc:annotation-driven elements are used to register both the non-rest and rest controllers.

  • The controllers map the respective urls to methods using @RequestMapping(url).

  • To return JSON, the rest controller uses @ResponseBody.

  • The datasource and entitymanager are retrieved via JNDI.

Access the application

The application will be running at the following URL: http://localhost:8080/{artifactId}/.

Server Log: Expected Warnings and Errors

You will see the following warnings in the server log. You can ignore these warnings.

WARN  [org.jboss.as.ee] (MSC service thread 1-5) WFLYEE0007: Not installing optional component org.springframework.http.server.ServletServerHttpAsyncRequestControl due to an exception (enable DEBUG log level to see the cause)
WARN  [org.jboss.as.ee] (MSC service thread 1-5) WFLYEE0007: Not installing optional component org.springframework.web.context.request.async.StandardServletAsyncWebRequest due to an exception (enable DEBUG log level to see the cause)

Debug the Application

If you want to debug the source code or look at the Javadocs of any library in the project, run either of the following commands to pull them into your local repository. The IDE should then detect them.

$ mvn dependency:sources
$ mvn dependency:resolve -Dclassifier=javadoc
You can’t perform that action at this time.