com.chevrier.legiondao.boot.ApplicationInitializer.java Source code

Java tutorial

Introduction

Here is the source code for com.chevrier.legiondao.boot.ApplicationInitializer.java

Source

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.chevrier.legiondao.boot;

import com.chevrier.legiondao.config.WebConfig;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.web.SpringBootServletInitializer;

/**
 *
 * @author nicolas
 */
public class ApplicationInitializer extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(WebConfig.class);
    }
}