Showing posts with label maven. Show all posts
Showing posts with label maven. Show all posts

Set up a maven web project in Intellij with Spring and JPA - Part Seven

Welcome to part Seven of this tutorial series! After configuring our Spring MVC setup in the last tutorial we will now implement it. First of all let's have a look at our index.jsp and change it to this:


We only need this one line of code here.



Now create PostController.java in the blog.controller.dao package and mark it with @Controller.

Set up a maven web project in Intellij with Spring and JPA - Part Six

Hello, welcome to part 6 of these series. Today we will be covering how to configure spring mvc in a web application.

First off all let's configure our web.xml which at this point should look something like this

<web-app xmlns="http://java.sun.com/xml/ns/javaee"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
    http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
           version="3.0">

</web-app>


In a web application you can tell Spring to load config files in the following way: If you would like to pass more config files just separate them with a comma.

Set up a maven web project in Intellij with Spring and JPA - Part Two

Hello again, in this tutorial we will continue our MavenWebapp project we made earlier.
This part will focus on configuring maven.

When opening the pom.xml you should now have the following code:

    4.0.0

    MavenWebapp
    MavenWebapp
    war
    1.0

    



Set up a maven web project in Intellij with Spring and JPA - Part One

Hello everyone, in this article i will you how to setup a web application with maven integration in Intellij.
I'm planning to make it a mutli-part tutorial on how to configure maven with spring and jpa. This is the first part in the tutorial, more coming soon.



  1. Open your Intellij, navigate to file -> new project and create a project from scratch -> next