Home > Uncategorized > Spring boot MVC application tutorial

Spring boot MVC application tutorial

Looks OK!

spring-logoI will tutor you to create simple Spring MVC application based on Spring boot. App will have two linked web pages with thymeleaf. The project itself will be made in Eclipse as an Gradle project. Let’s start!

Download Source Code

Source for this tutorial is available here, on GitHub

Create project with Gradle build file

Create build.gradle file. First of all depict repositories and dependencies that you will use for gradle plugins:

buildscript {
    repositories {
        maven { url "http://repo.spring.io/libs-release"}mavenLocal()mavenCentral()}
    dependencies {classpath("org.springframework.boot:spring-boot-gradle-plugin:1.1.1.RELEASE")}}

Then apply plugins for java, spring-boot and eclipse to have default targets of these plugins:

apply plugin:'java'
apply plugin:'eclipse'
apply plugin:'spring-boot'

Now show which java version compliance you want to have, and how your jar file will be named:

sourceCompatibility =1.6

jar {
    baseName ='looksok-mvc-demo'

View original post 428 more words

Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: