异常的概念-程序在运行过程中可能产生异常-异常(Exception)与Bug的区别 异常是程序运行时可预料的执行分支 Bug是程序中的错误,是不被预期的运行方式 异常(Exception)和Bug的对比-异常 运行时产生除0的情况 需要打开的外部文件不存在 数组访问时越界-Bug 使用野指针 堆数组 ...
分类:
编程语言 时间:
2021-01-26 12:15:25
阅读次数:
0
package com.company; import java.io.*; import java.util.Properties; public class Main { public static void main(String[] args) throws IOException { my ...
分类:
编程语言 时间:
2021-01-26 11:55:56
阅读次数:
0
import os def remove_filename(path_dir, start, end): files = [f for f in os.listdir(path_dir) if f.startswith(start) and f.endswith(end)] for file_nam ...
分类:
编程语言 时间:
2021-01-26 11:48:41
阅读次数:
0
@Value和@Autowired这两个注解都是由AutoWiredAnnotationBeanPostProcessor来处理的,这两个注解被处理的地方也是一样的,就是在一个bean被new出来之后,要填充属性的populateBean方法里。 会调用 AutoWiredAnnotationBea ...
分类:
编程语言 时间:
2021-01-25 11:15:20
阅读次数:
0
1.查看spring security,发现会自动创建多个对象。此时需要通过排序来进行,将自己设置的配置文件提前初始化来满足 @EnableWebSecurity @Order(1) //排序来处理这样的问题。但是没有治本,需要查看为什么要初始化多个对象... public class Securi ...
分类:
编程语言 时间:
2021-01-25 10:52:22
阅读次数:
0
用户信息存储 /** * 通过重载,配置user-detail服务<!--more--> * @param auth * @throws Exception */ @Override protected void configure(AuthenticationManagerBuilder auth ...
分类:
其他好文 时间:
2021-01-21 11:00:48
阅读次数:
0
/**<!--more--> * 通过重载,配置如果通过拦截器保护请求 * @param http * @throws Exception */ @Override protected void configure(HttpSecurity http) throws Exception {// su ...
分类:
其他好文 时间:
2021-01-21 11:00:01
阅读次数:
0
异常页面的DeveloperExceptionPageMiddleware中间件,该中间件在捕捉到后续处理过程中抛出的异常之后会返回一个媒体类型为text/html的响应,后者在浏览器上会呈现一个错误页面。由于这是一个为开发者提供诊断信息的异常页面,所以可以将其称为开发者异常页面(Developer... ...
分类:
Web程序 时间:
2021-01-19 12:30:22
阅读次数:
0
Error while trying to create admin user: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [1130] Host '172.18.0.2' ...
分类:
其他好文 时间:
2021-01-19 12:03:11
阅读次数:
0
实现原理-运行在编译期 常用注解 @Getter注解 /** * @Getter注解 * 为属性生成get方法 */public class GetterTest { @Getter( lazy = true ) private final String field1 = "zhangxiaoxi" ...
分类:
编程语言 时间:
2021-01-18 11:41:26
阅读次数:
0