You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
831 B
21 lines
831 B
2 years ago
|
package vip.xumy.drools.conf;
|
||
|
|
||
|
import org.mybatis.spring.annotation.MapperScan;
|
||
|
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
||
|
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
|
||
|
import org.springframework.boot.builder.SpringApplicationBuilder;
|
||
|
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
|
||
|
import org.springframework.context.annotation.ComponentScan;
|
||
|
|
||
|
@EnableAutoConfiguration(exclude = DataSourceAutoConfiguration.class)
|
||
|
@ComponentScan(value = "vip.xumy.drools, vip.xumy.core")
|
||
|
@MapperScan({ "vip.xumy.drools.mapper" })
|
||
|
public class DroolsInitializer extends SpringBootServletInitializer {
|
||
|
|
||
|
@Override
|
||
|
protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
|
||
|
return builder.sources(DroolsInitializer.class);
|
||
|
}
|
||
|
|
||
|
}
|