|
27 | 27 | import com.navercorp.pinpoint.web.WebServerConfig;
|
28 | 28 | import com.navercorp.pinpoint.web.WebStarter;
|
29 | 29 | import com.navercorp.pinpoint.web.cache.CacheConfiguration;
|
| 30 | +import com.navercorp.pinpoint.web.realtime.RealtimeWebConfig; |
30 | 31 | import org.springframework.boot.SpringBootConfiguration;
|
31 | 32 | import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
| 33 | +import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration; |
| 34 | +import org.springframework.boot.autoconfigure.data.redis.RedisReactiveAutoConfiguration; |
| 35 | +import org.springframework.boot.autoconfigure.data.redis.RedisRepositoriesAutoConfiguration; |
| 36 | +import org.springframework.boot.autoconfigure.data.web.SpringDataWebAutoConfiguration; |
32 | 37 | import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
|
33 | 38 | import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
|
34 | 39 | import org.springframework.boot.autoconfigure.transaction.TransactionAutoConfiguration;
|
|
38 | 43 | * @author minwoo.jung
|
39 | 44 | */
|
40 | 45 | @SpringBootConfiguration
|
41 |
| -@EnableAutoConfiguration(exclude = {DataSourceAutoConfiguration.class, TransactionAutoConfiguration.class, |
42 |
| - SecurityAutoConfiguration.class}) |
| 46 | +@EnableAutoConfiguration(exclude = { |
| 47 | + DataSourceAutoConfiguration.class, |
| 48 | + TransactionAutoConfiguration.class, |
| 49 | + SecurityAutoConfiguration.class, |
| 50 | + SpringDataWebAutoConfiguration.class, |
| 51 | + RedisAutoConfiguration.class, |
| 52 | + RedisRepositoriesAutoConfiguration.class, |
| 53 | + RedisReactiveAutoConfiguration.class |
| 54 | +}) |
43 | 55 | @ImportResource({"classpath:applicationContext-web.xml", "classpath:servlet-context-web.xml"})
|
44 | 56 | @Import({WebAppPropertySources.class, WebServerConfig.class, WebMvcConfig.class, CacheConfiguration.class})
|
45 | 57 | public class MetricAndWebApp {
|
46 | 58 | private static final ServerBootLogger logger = ServerBootLogger.getLogger(WebApp.class);
|
47 | 59 |
|
48 | 60 | public static void main(String[] args) {
|
49 | 61 | try {
|
50 |
| - WebStarter starter = new WebStarter(MetricAndWebApp.class, PinpointBasicLoginConfig.class, AuthorizationConfig.class, MetricWebApp.class, UriStatWebConfig.class); |
| 62 | + WebStarter starter = new WebStarter( |
| 63 | + MetricAndWebApp.class, |
| 64 | + PinpointBasicLoginConfig.class, |
| 65 | + AuthorizationConfig.class, |
| 66 | + MetricWebApp.class, |
| 67 | + UriStatWebConfig.class, |
| 68 | + RealtimeWebConfig.class |
| 69 | + ); |
51 | 70 | starter.addProfiles("uri", "metric");
|
52 | 71 | starter.start(args);
|
53 | 72 | } catch (Exception exception) {
|
|
0 commit comments