com.mycompany.spring.propertysource.views.NewMain.java Source code

Java tutorial

Introduction

Here is the source code for com.mycompany.spring.propertysource.views.NewMain.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.mycompany.spring.propertysource.views;

import com.mycompany.spring.propertysource.config.AppConfig;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 *
 * @author juang
 */
public class NewMain {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext();
        ctx.register(AppConfig.class);
        ctx.refresh();
    }

}