1 第一步 搭建一个基于maven的web工程 2 第二步 在web.xml配置文件中写上如下代码 <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.c ...
分类:
编程语言 时间:
2020-06-12 20:12:49
阅读次数:
66
import java.io.UnsupportedEncodingException; import java.security.InvalidKeyException; import java.security.NoSuchAlgorithmException; import java.secu ...
分类:
编程语言 时间:
2020-06-12 18:42:39
阅读次数:
64
一、准备 pom文件 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> </dependency> <!-- mybatis的启动器 - ...
分类:
编程语言 时间:
2020-06-12 17:35:25
阅读次数:
66
D27 1. 向文件中添加或插入行 1)在文件的指定行后添加一行内容 $ cat info.txt Linux - Sysadmin Database - Oracle, MySQL etc. Security - Firewall, Network, Online Security etc. Co ...
分类:
系统相关 时间:
2020-06-12 14:56:35
阅读次数:
76
目录 两个问题 1、在Spring中,什么是Bean?跟对象有什么区别? 2、在创建对象前,Spring还做了其它什么事情吗? 创建对象的源码分析 1、finishBeanFactoryInitialization 2、preInstantiateSingletons 3、doGetBean 4、g ...
分类:
编程语言 时间:
2020-06-12 14:39:49
阅读次数:
93
Error starting Tomcat context. Exception: org.springframework.beans.factory.BeanCreationException. Message: Error creating bean with name 'org.apache. ...
分类:
编程语言 时间:
2020-06-12 14:33:12
阅读次数:
127
今天用springboot写了个webservice的接口 启动项目后报错class not found EmbeddedServletContainerAutoConfiguration 然后看了下pom.xml文件中的依赖如下: <parent> <groupId>org.springframe ...
分类:
编程语言 时间:
2020-06-12 14:11:19
阅读次数:
252
哈尔滨工业大学 2020 操作系统实验Lab3,采用新版本的实验仓库 ...
分类:
编程语言 时间:
2020-06-12 12:51:10
阅读次数:
61
1、实现方式一:Spring中的@PropertySource @Component @PropertySource("classpath:user.properties") public class UserInfo { @Value("${user.username}") private Str ...
分类:
编程语言 时间:
2020-06-12 12:30:31
阅读次数:
67
1.健康检查1.1健康检查概述应用在运行过程中难免会出现错误,如程序异常,软件异常,硬件故障,网络故障等,kubernetes提供HealthCheck健康检查机制,当发现应用异常时会自动重启容器,将应用从service服务中剔除,保障应用的高可用性。k8s定义了三种探针Probe:readinessprobes准备就绪检查,通过readiness是否准备接受流量,准备完毕加入到endpoint,
分类:
Web程序 时间:
2020-06-12 12:25:14
阅读次数:
74