当前位置:网站首页>WebApplicationType#deduceFromClasspath
WebApplicationType#deduceFromClasspath
2022-07-28 21:10:00 【芒骁】
其实就是从类路径中找这几个类,找到了就说明是SERVLET,没找到时其他处理,一般导入web场景是找到的。
static WebApplicationType deduceFromClasspath() {
if (ClassUtils.isPresent("org.springframework.web.reactive.DispatcherHandler", (ClassLoader)null) && !ClassUtils.isPresent("org.springframework.web.servlet.DispatcherServlet", (ClassLoader)null) && !ClassUtils.isPresent("org.glassfish.jersey.servlet.ServletContainer", (ClassLoader)null)) {
return REACTIVE;
} else {
String[] var0 = SERVLET_INDICATOR_CLASSES;
int var1 = var0.length;
for(int var2 = 0; var2 < var1; ++var2) {
String className = var0[var2];
if (!ClassUtils.isPresent(className, (ClassLoader)null)) {
return NONE;
}
}
return SERVLET;
}
}
边栏推荐
- OSV_ q AttributeError: ‘numpy. ndarray‘ object has no attribute ‘clone‘
- Command line agent: proxychains configuration
- 美国FCC提供16亿美元资助本国运营商移除华为和中兴设备
- Improvement 18 of yolov5: the loss function is improved to alpha IOU loss function
- 【复制】互联网术语、简称、缩写
- Qt+ffmpeg environment construction
- console.log()控制台显示...解决办法
- Simple es highlight practice
- 二进制的原码、反码、补码
- shell脚本基础——Shell运行原理+变量、数组定义
猜你喜欢

使用PCL批量显示PCD点云数据流

Quadruped robot | gem (elevation map) + fast_ Deployment records of Leo (odometry) environment
![[virtual machine _2]-hyper-v and vmware/virtualbox cannot coexist](/img/90/c481a817dc91d7e5247dd8e3ee1dae.png)
[virtual machine _2]-hyper-v and vmware/virtualbox cannot coexist

JVM -- custom class loader

c语言实现字符串逆序排列

《Shortening passengers’ travel time A dynamic metro train scheduling approach using deep reinforcem》

Command line agent: proxychains configuration

《Shortening passengers’ travel time A dynamic metro train scheduling approach using deep reinforcem》
![[3D target detection] 3dssd (II)](/img/8a/e8927cd868eb99d8880d4f199d8918.png)
[3D target detection] 3dssd (II)

STM32 - reset and clock control (cubemx for clock configuration)
随机推荐
[connect set-top box] - use ADB command line to connect ec6108v9 Huawei Yuehe box wirelessly
Learning experience sharing 4: learning experience of yolov7
Yolov5 improvement 4: add ECA channel attention mechanism
Symbol符号类型
STM32 - external interrupt application (exti) (use cubemx to configure interrupts)
Solve various problems of sudo rosdep init and rosdep update
【复制】互联网术语、简称、缩写
Use PCL to batch convert point cloud.Bin files to.Pcd
软件测试工具fiddler postman jmeter charlse核心功能总结
OSV_ q Expected all tensors to be on the same device, but found at least two devices, cuda:0
LTE小区搜索过程及SCH/BCH设计
LTE cell search process and sch/bch design
php二维数组如何删除去除第一行元素
[connect your mobile phone wirelessly] - debug your mobile device wirelessly via LAN
递归和迭代
简单的es高亮实战
Summary of C language learning content
[reprint] the token token is used in the login scenario
无代码开发平台管理后台入门教程
hp proliant dl380从U盘启动按哪个键