当前位置:网站首页>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;
}
}
边栏推荐
- 使用PCL批量将点云.bin文件转.pcd
- NPM run dev, automatically open the browser after running the project
- One of the experience of solving problems with code error reporting: CUDA does not match pytorch
- Intelligent control -- fuzzy mathematics and control
- STM32 single chip microcomputer drive L298N
- [reprint] the token token is used in the login scenario
- Improvement 18 of yolov5: the loss function is improved to alpha IOU loss function
- 轮子六:QSerialPort 串口数据 收发
- [connect your mobile phone wirelessly] - debug your mobile device wirelessly via LAN
- ES6, deep copy, shallow copy
猜你喜欢

Yolov5 improvement 12: replace backbone network C3 with lightweight network shufflenetv2

Anomaly detection summary: intensity_ based/Normalizing Flow
![[connect set-top box] - use ADB command line to connect ec6108v9 Huawei Yuehe box wirelessly](/img/ab/624e9a3240416f8445c908378310ad.png)
[connect set-top box] - use ADB command line to connect ec6108v9 Huawei Yuehe box wirelessly

Simple es highlight practice

Console.log() console display... Solution

Vscode ROS configuration GDB debugging error record

WinForm jump to the second form case
![CFA [anomaly detection: embedded_based]](/img/ee/da822a7e8b443236338d4274b066c7.png)
CFA [anomaly detection: embedded_based]

STM32 - interrupt overview (interrupt priority)

Yolov5 improvement 4: add ECA channel attention mechanism
随机推荐
Yolov5 improvement 5: improve the feature fusion network panet to bifpn
递归和迭代
Improvement 13 of yolov5: replace backbone network C3 with lightweight network efficientnetv2
Symbol符号类型
Use the picture name to label the picture [tips]
二进制的原码、反码、补码
STM32 -- program startup process
776. String shift inclusion problem
JS获取当前时间(年月日时分秒)
Wheel 7: TCP client
Redis related
Draem+sspcab [anomaly detection: block]
Install PCL and VTK under the background of ROS installation, and solve VTK and PCL_ ROS conflict problem
Reading of "robust and communication efficient federated learning from non-i.i.d. data"
OSV-q ValueError: axes don‘t match array
Improvement 17 of yolov5: cnn+transformer -- integrating bottleneck transformers
Yolov5 improvement 15: network lightweight method deep separable convolution
Paper reading: deep forest / deep forest /gcforest
PC side web page special effects (offset series, obtain the coordinates of the mouse in the box, pop-up drag effect, magnifying glass effect)
What to do after mathematical modeling gets the competition problem and some ("crooked ways") tips - must see before the competition