01 2019 档案
摘要:首先需要去平台注册账号以及秘钥 这里以中国网建为例 官网:http://sms.webchinese.com.cn 代码如下: package com.yetech; import org.apache.commons.httpclient.Header; import org.apache.com
阅读全文
摘要:public class ReflexAndClass { public static void main(String[] args) throws Exception { /** * 获取Class对象的三种方式 * 1 Object ——> getClass(); * 2 任何数据类型(包括基
阅读全文
摘要:一.关于全表扫描 1.合理使用索引,要尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。 2.避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索引而进行全表扫描 3.尽量避免在 where 子句中使用 != 或 <> 操作符,否则将引
阅读全文
摘要:System.getProperty("catalina.home") 获取tomcat的绝对路径 获取文件的绝对路径 在windous中拼接路径是" \ " 而linux系统中路径拼接是" / " 所以为了更好的兼容建议用File.separator 例子如下: properties文件的路径及内
阅读全文
摘要:<build> <plugins> <plugin> <artifactId> maven-assembly-plugin </artifactId> <configuration> <descriptorRefs> <descriptorRef> jar-with-dependencies </d
阅读全文
摘要:<dependency>部分下添加<exclusions>标记 Dependencies:是可选依赖(Optional Dependencies) Exclusions:是依赖排除(Dependency Exclusions) 在继承关系中 如果父工程pom中存在依赖 name继承的子工程中不需要引
阅读全文

浙公网安备 33010602011771号