`
Colin_Davis
  • 浏览: 24934 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
    转自 http://blog.csdn.net/my541619352/article/details/45012299          2017-10-23  Host 标签的子标签 Alias 可以让多个域名映射到同一个 Host 上,避免了启动多个 Context 的状况 <Host name="www.12123.cn"...> <Alias>www.122gov.cn</Alias> </Host>        

java 导出 Excel 封装

    博客分类:
  • Java
              导出列表, 表头及主体内容. 可以对某列进行二次处理 public void exportExcelA(RoomModel rrm, HttpServletRequest request, HttpServletResponse response) throws Exception { List<RoomModel> resultListA = if (resultListA != null && !resultListA.isEmpty()) { String fileName = Str ...
  { int y1 = 2016, m1 = 9, d1 = 29; int y2 = 2014, m2 = 11, d2 = 8; GregorianCalendar gcCalendar1 = new GregorianCalendar(y1, m1 - 1, d1); GregorianCalendar gcCalendar2 = new GregorianCalendar(y2, m2 - 1, d2); long timeMillis = gcCalendar1.getTimeInMillis() - gcCalendar2.g ...

Java Txt 流文件

    博客分类:
  • Java
      BufferedReader reader = new BufferedReader(new InputStreamReader(txtFile.getInputStream(), request.getCharacterEncoding())); String line = null; while ((line = reader.readLine()) != null) { if (EmptyUtil.notEmpty(line)) { macAddresses.addAll(this.parseLine(line) ...

Java 调用 泛型方法

    博客分类:
  • Java
          public static <V> Map<String, V> mapThem(String[] keys, V... vals) { if (keys == null || keys.length == 0) { return new HashMap<String, V>(4); } Map<String, V> map = new HashMap<String, V>(keys.length + 1); for (int i = 0; i < keys.length; i ...

svg 符号

    博客分类:
  • Html
      <a class="close-x" href="javascript:void(0)" onclick="javascript:window.parent.modalClose()"> <svg viewBox="0 0 24 24"> <path d="M22.2,4c0,0,0.5,0.6,0,1.1l-6.8,6.8l6.9,6.9c0.5,0.5,0,1.1,0,1.1L20,22.3c0,0-0.6,0.5-1.1,0L12,15.4 ...
      URI uri = new URI(url); Desktop desktop = Desktop.getDesktop(); if (desktop.isSupported(Desktop.Action.BROWSE)) { desktop.browse(uri); }            
       普及下正则表达式, 留着备用 字符 含意 \ 做为转意,即通常在"\"后面的字符不按原来意义解释,如/b/匹配字符"b",当b前面加了反斜杆后/\b/,转意为匹配一个单词的边界。 -或- 对正则表达式功能字符的还原,如"*"匹配它前面元字符0次或多次,/a*/将匹配a,aa,aaa,加了"\"后,/a\*/将只匹配"a*"。 ^ 匹配一个输入或一行的开头,/^a/匹配"an A",而不匹配"An a" ...
      @Override public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { StringBuffer buf = new StringBuffer(); buf.append("URL=:" + request.getRequestURL() + "\r\n"); Enumeration<String> na ...

Object-C block

      /// 调用相册选择照片 /// [menu addButtonWithTitle:NSLocalizedString(@"KeyFromAlbum", nil) block:onTouch_MenuItem];   /// 点击 相册 和 拍照 菜单选项代码块 /// void (^onTouch_MenuItem)(NSUInteger) = ^(NSUInteger y) { //NSLog(@"%lu", (unsigned long)index); // ==> 1 if (!im ...
     20s 执行 func,取消执行的还没找到。。。    [NSTimer scheduledTimerWithTimeInterval:20 target:self selector:@selector(func) userInfo:nil repeats:YES];      当前进程阻塞 2s    [NSThread sleepForTimeInterval:2];        
    http://www.nssm.cc   添加 Windows 服务,总是失败,可以使用 NSSM 这个第三方的试一下    
  http://code.google.eom/p/android4me/downloads/list           
      以下情况为单层 Transactional 事务     <bean id="txManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager"> <property name="dataSource" ref="mysqlDataSource" /> </bean> <tx:annotation ...
     google zxing 依赖包 <dependency> <groupId>com.google.zxing</groupId> <artifactId>javase</artifactId> <version>3.2.1</version> </dependency>          import com.google.zxing.BarcodeFormat; import com.google.zxing.EncodeHintType; import ...
Global site tag (gtag.js) - Google Analytics