
apache
ewwerpm
qq:1789270840
展开
-
xampp设置apache访问根目录
不是ServerRoot,而是 DocumentRoot。 记录一下,好久不用,又搞了半天。不知道这个ServerRoot干嘛用的?大神指导一下原创 2021-11-15 17:28:31 · 1031 阅读 · 0 评论 -
apache2.4 建虚拟目录
参考:主要修改地方 2、第二个修改地方 打开httpd.conf文件 去掉LoadModule vhost_alias_module modules/mod_vhost_alias.so 这句前面的#号 和 Include conf/extra/httpd-vhosts.conf这句前面的#号 Include conf/extra/httpd-vhosts.conf这句在httpd.co转载 2015-09-15 14:28:16 · 870 阅读 · 0 评论 -
解决Only a type can be imported. * resolves to a package
参考:打成jar包放到tomcat/lib 目录下 运行时报错: An error occurred at line: 9 in the generated java file Only a type can be imported. **** resolves to a package 意思是说只有一个类能被导入,****是一个包。 把需要的java文件打成jar包原创 2017-10-21 09:29:36 · 5433 阅读 · 0 评论 -
将生成jsp放到非webapps 目录下
jsp在 webapps/Report/x/aaa.jsp 能正常运行,放到 webapps/x/aaa.jsp 下 就出现空指针(没有导入mysql包) 修改server.xml, 将import的类打包成jar,放到tomcat/lib 目录下 将mysql jar 放到tomcat/lib 目录下,基本上就差不多了原创 2017-10-21 10:00:56 · 431 阅读 · 0 评论 -
servlet 读写文件的坑
private String read(String srcFile) throws Exception { //FileNotFoundException Scanner in = new Scanner(new File(srcFile)); String result = ""; while (in.hasNextLine()) {原创 2017-10-21 12:54:47 · 523 阅读 · 0 评论 -
utf-8 读入写入文件
用下面的代码效果最好,亲测!!! FileInputStream fis = new FileInputStream(srcFile); InputStreamReader isr = new InputStreamReader(fis, "UTF-8"); BufferedReader br =原创 2017-10-21 14:09:42 · 406 阅读 · 0 评论 -
eclipse默认指向WebContent目录修改为webRoot 设置说明
参考:设置webRoot 另外,Project Facets时further configuration available不出来问题 myeclipse 项目导入过来的,myeclipse默认webRoot,我的eclipse默认webContent,要改,在project faces里原创 2017-11-02 11:22:40 · 480 阅读 · 0 评论