一、注解(annotations)列表 1、@SpringBootApplication 包含了@ComponentScan、@Configuration和@EnableAutoConfiguration注解。 其中@ComponentScan让Spring Boot扫描到Configuration ...
分类:
编程语言 时间:
2021-01-01 11:39:58
阅读次数:
0
canal数据同步报错:Caused by: com.alibaba.otter.canal.protocol.exception.CanalClientException: java.net.ConnectExceptio 端口未开放 解决方案 : 开放 11111端口 iptables -I I ...
分类:
编程语言 时间:
2020-12-31 12:57:27
阅读次数:
0
CUIT 软件工程学院2019级Python习题练习2 判断题 1-1 open("test.txt", 'r+')是以只读模式打开test.txt文件。(F) 1-2 使用Python内置的open函数打开某个文件的时候,如果该文件不存在,则可能产生异常。所以一定要使用try except对其进行 ...
分类:
编程语言 时间:
2020-12-25 11:45:24
阅读次数:
0
尽管Java已经预定义了许多异常类,但有时还需要定义自己的异常。编写自定义异常类实际上是继承一个API标准异常类,用新定义的异常处理信息覆盖原有信息的过程。 自定义异常类需要继承Exception。 当然也可选用Throwable作为父类。其中无参数构造方法为创建缺省参数对象提供了方便。 第二个构造 ...
分类:
编程语言 时间:
2020-12-24 11:45:20
阅读次数:
0
package xcy; import java.io.IOException; import java.net.URLEncoder; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet ...
分类:
其他好文 时间:
2020-12-24 11:32:18
阅读次数:
0
inputstream输入流 /** * 从文件中读取数据 * @param args * @throws Exception */ public static void main(String[] args)throws Exception { String filePath = "C:/User ...
分类:
编程语言 时间:
2020-12-21 11:33:30
阅读次数:
0
目录: 1、springboot启动配置原理 几个重要的事件回调机制: 配置在META-INF/spring.factories ApplicationContextInitializer SpringApplicationRunListener 只需要放在ioc容器中 ApplicationRun ...
分类:
编程语言 时间:
2020-12-18 13:14:57
阅读次数:
3
连接hdfs 根据hdfs的版本引用相关的hdfs依赖 <!-- https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-client --> <dependency> <groupId>org.apache.hadoop</group ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.DirectoryServices; na ...
class Utils: #对可输入的元素执行点击,清理和输入 @classmethod def send_input(cls,ele,value): ele.click() try: ele.clear() except: pass finally: ele.send_keys(value) # ...
分类:
其他好文 时间:
2020-12-17 13:04:31
阅读次数:
5