sql重复数据只取一条记录
摘要:1、SQL SELECT DISTINCT 语句 在表中,可能会包含重复值。这并不成问题,不过,仅仅列出不同(distinct)的值。 关键词 DISTINCT 用于返回唯一不同的值。 语法: SELECT DISTINCT 列名称 FROM 表名称 使用 DISTINCT 关键词 1 SELECT
阅读全文
启动tomcat时,一直卡在Deploying web application directory
摘要:本来今天正常往服务器上扔一个tomcat 部署一个项目的, 最后再启动tomcat 的时候 发现项目一直都访问不了,看了一下日志: 1 2 3 4 5 6 7 [root@iz8vbdzx7y7owm488t4d89z bin]# tail -f ../logs/catalina.out 09-Ju
阅读全文
正则表达式 网址
摘要:有以下的四个测试用例: 运行结果如上图所示。 代码如下: package urlReg; import java.util.regex.*; public class urlRegTest { public static void main(String[] args) { String url1
阅读全文
maven tomcat7 远程热部署
摘要:在maven项目开发中,一般推荐使用jetty进行开发调试。但是在项目发布的时候要求使用tomcat7作为发布服务器,为此在maven中配置了tomcat7插件,以支持项目在外部tomcat7进行远程热部署。 具体配置步骤如下: 1、在服务器段安装tomcat7,并更改配置文件夹conf中tomca
阅读全文
部署基于Maven的war文件到Tomcat
摘要:Tomcat 7发布URL = http://localhost:8080/manager/text命令 = mvn tomcat7:deploy Tomcat 6发布 URL = http://localhost:8080/manager/命令 = mvn tomcat6:deploy 1、打开t
阅读全文
tomcat manager
摘要:在点击tomcat manager的时候提示以下内容: You are not authorized to view this page. By default the Host Manager is only accessible from a browser running on the sam
阅读全文
TOMCAT Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level.
摘要:十二月 31, 2014 2:32:45 下午 org.apache.coyote.http11.AbstractHttp11Processor process信息: Error parsing HTTP request header Note: further occurrences of HTT
阅读全文
Eclipse生成jar文件
摘要:很多人都不知道怎么在Eclipse下生成jar文件,或者生成了jar文件后又老是用不了,总是会收到 Exception in thread "main" Java.lang.NoClassDefFoundError: ****** 这样的错误提示。 其实在Eclipse下生成jar文件是非常简单的:
阅读全文