当tomcat服务器出现404、500错误时候希望能够给用户友好的现实界面;只需要在项目的web.xml中添加一些配置,显示我们自定义的404/500错误网页即可 打开%CATALINA_HOME%/conf/web.xml文件,在<web-app>标签中添加如下内容: 简单写一下404/500自定 ...
分类:
其他好文 时间:
2021-04-13 12:12:39
阅读次数:
0
第一种方法:在pom.xml文件中增加如下标签 1 <build> 2 <resources> 3 <resource> 4 <directory>src/main/resource</directory> 5 <includes> 6 <include>**/*.xml</include> 7 < ...
分类:
其他好文 时间:
2021-04-13 11:47:23
阅读次数:
0
Mybatis的CRUD操作 我们在创建第一个项目自后,来进行数据库的操作; Mybatis在JDBC的基础上,对sql语句的执行进行了简化。 1.准备工作 1.1.创建我们的第二个项目,项目结构如下: 1.2.在pom.xml文件中引入资源文件导出的配置文件 <build> <resources> ...
分类:
其他好文 时间:
2021-04-13 11:46:49
阅读次数:
0
手动导入jar包需要有pom.xml文件。 mvn install:install-file -Dfile=G:\PXY\JFAPP\project28\ris-api-2.1.3\dcm4che\dcm4che-core\5.18.0\dcm4che-core-5.18.0.jar -Dgroup ...
分类:
编程语言 时间:
2021-04-12 12:48:47
阅读次数:
0
1 先打开tomcat的安装目录 2 编辑 conf 目录下的 logging.properties 3 用notepad++ 打开,把里面的UTF-8 通通改成 GBK 4 保存,重启Tomcat,即可生效。 ...
分类:
其他好文 时间:
2021-04-12 12:38:02
阅读次数:
0
Description: Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in each row ...
分类:
其他好文 时间:
2021-04-12 12:32:28
阅读次数:
0
XML文件操作 实体类 using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace XMLDemo { class Student { public string St ...
分类:
其他好文 时间:
2021-04-12 12:30:15
阅读次数:
0
现象 解决方案 1. 由于Google被墙导致的问题 参考 配置阿里云源修改maven的源地址。 2. 由于错误配置代理导致的问题(提示400) 查看工程目录下的gradle.properties和C:/Users/用户名/.gradle/目录下的gradle.properties是否存在下面的内容 ...
分类:
Web程序 时间:
2021-04-12 12:07:10
阅读次数:
0
HTML <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" conten ...
分类:
Web程序 时间:
2021-04-10 13:41:40
阅读次数:
0
1. pom.xml Maven依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-mongodb</artifactId> </dependency> 2. ...
分类:
数据库 时间:
2021-04-10 13:33:58
阅读次数:
0