com.vcredit.lrh.core.CoreApplication.java Source code

Java tutorial

Introduction

Here is the source code for com.vcredit.lrh.core.CoreApplication.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.vcredit.lrh.core;

import com.vcredit.lrh.db.mongodb.LRHMongoConfiguration;
import com.vcredit.lrh.db.mysql.LRHMySQLInitConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Import;

/**
 *
 * @author Liu Jianwei
 * @date Oct 24, 2016 12:52:49 PM
 */
@EnableEurekaClient
@SpringBootApplication
@Import({ LRHMySQLInitConfiguration.class, LRHMongoConfiguration.class })
public class CoreApplication {

    public static void main(String[] args) {
        new SpringApplicationBuilder(CoreApplication.class).web(true).run(args);
    }
}