Subversion Repositories SmartDukaan

Rev

Rev 35788 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 35788 Rev 35803
Line 90... Line 90...
90
    @Autowired
90
    @Autowired
91
    OrderTrackingService orderTrackingService;
91
    OrderTrackingService orderTrackingService;
92
 
92
 
93
    public static void main(String[] args) throws Throwable {
93
    public static void main(String[] args) throws Throwable {
94
        try {
94
        try {
-
 
95
            WebApplicationType webType = WebApplicationType.SERVLET;
-
 
96
            for (String arg : args) {
-
 
97
                if (arg.contains("spring.main.web-application-type=none")) {
-
 
98
                    webType = WebApplicationType.NONE;
-
 
99
                    break;
-
 
100
                }
-
 
101
            }
95
            new SpringApplicationBuilder(Application.class).web(WebApplicationType.SERVLET).run(args);
102
            new SpringApplicationBuilder(Application.class)
-
 
103
                    .web(webType)
-
 
104
                    .run(args);
96
        } catch (Throwable t) {
105
        } catch (Throwable t) {
97
            t.printStackTrace();
106
            t.printStackTrace();
98
        }
107
        }
99
    }
108
    }
100
 
109