2018-11-13 13:18:45 +01:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2018 ETH Zürich, Educational Development and Technology (LET)
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*/
|
|
|
|
|
|
|
|
package ch.ethz.seb.sebserver;
|
|
|
|
|
|
|
|
import org.springframework.boot.SpringApplication;
|
|
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
2019-02-01 23:38:47 +01:00
|
|
|
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
|
2018-11-15 11:24:18 +01:00
|
|
|
import org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration;
|
2018-11-13 13:18:45 +01:00
|
|
|
import org.springframework.context.annotation.Configuration;
|
2019-02-01 23:38:47 +01:00
|
|
|
import org.springframework.context.annotation.Import;
|
2018-11-13 13:18:45 +01:00
|
|
|
|
2018-11-15 11:24:18 +01:00
|
|
|
@SpringBootApplication(exclude = {
|
2018-11-22 10:39:18 +01:00
|
|
|
// OAuth2ResourceServerAutoConfiguration.class,
|
2018-11-15 11:24:18 +01:00
|
|
|
UserDetailsServiceAutoConfiguration.class,
|
2019-02-01 22:18:31 +01:00
|
|
|
//DataSourceAutoConfiguration.class
|
2018-11-15 11:24:18 +01:00
|
|
|
})
|
2019-01-28 16:58:06 +01:00
|
|
|
@Configuration
|
2019-02-01 23:38:47 +01:00
|
|
|
@Import(DataSourceAutoConfiguration.class)
|
2018-11-13 13:18:45 +01:00
|
|
|
public class SEBServer {
|
|
|
|
|
|
|
|
public static void main(final String[] args) {
|
|
|
|
org.apache.ibatis.logging.LogFactory.useSlf4jLogging();
|
|
|
|
SpringApplication.run(SEBServer.class, args);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|