`
Clayz
  • 浏览: 293581 次
  • 性别: Icon_minigender_1
  • 来自: 东京
社区版块
存档分类
最新评论
文章列表
1. Generate self-signed certificate: clay@clay:~$ $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA -keystore /home/clay/clay.keystore   2. Then you will see: Enter keystore password: Re-enter new password: What is your first and last name? [Unknown]: Clay Zhong What is the name of your ...
A simple example of an activity diagram   A subsidiary activity diagram   Invoke the subsidiary activity   If you want to show who does what, you can divide an activity diagram into partitions, which show which actions one class or organization unit carries out.   A signal indicates that the ...
install.xml <?xml version="1.0" encoding="utf-8" standalone="yes" ?> <installation version="1.0"> <info> <appname>CLAY</appname> <appversion>1.0-0208</appversion> <url>http://www.clayz.com</url> < ...
To control transaction boundaries yourself, you must use the JTA interface javax.transaction.UserTransaction. The javax.transaction.UserTransaction interface enables you to programmatically control transactions. Here is what the javax.transaction.UserTransaction interface looks like: public interface ...
项目生命周期:process-resources -> compile -> process-classes -> process-test-resources ->                             test-compile -> test -> prepare-package -> package 也可单独运行: mvn resources:resources \          compiler:compile \          resources:testResources \          compiler:te ...
/** * @author Clay Zhong, zjclay@gmail.com * @date Dec 16, 2008 */ package com.clay.dao; import java.io.Serializable; import java.lang.reflect.ParameterizedType; import java.util.List; import org.hibernate.SessionFactory; import org.springframework.beans.factory.annotation.Autowired; import org. ...
import org.acegisecurity.Authentication; import org.acegisecurity.context.SecurityContext; import org.acegisecurity.context.SecurityContextHolder; import org.acegisecurity.ui.WebAuthenticationDetails; import org.acegisecurity.userdetails.UserDetails; public class ThreadLocaTest { public static S ...
本文转自:http://www.yuanma.org/data/2007/0213/article_2302.htm Acegi是Spring Framework 下最成熟的安全系统,它提供了强大灵活的企业级安全服务,如: 1 : 完善的认证和授权机制, 2 : Http资源访问控制, 3 : Method 调用访问控制, 4 : Access Control List (ACL) 基于对象实例的访问控制, 5 : Yale Central Authentication Service (CAS) 耶鲁单点登陆, 6 : X509 认证, 7 : 当前所有流行容器的认证适配器, 8 : Cha ...
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements.  See the NOTICE file # distributed with this work for additional information # regarding copyright ownership.  The ASF licenses this file # to you under the Apache License, Version 2.0 (the # & ...
1,假设存在Thesis对象: package org.cms.po; import java.util.Date; import java.util.HashSet; import java.util.Set; /** * Thesis generated by MyEclipse Persistence Tools */ public class Thesis implements java.io.Serializable { // Fields private Integer thesisid; private Project project; private User ...
一,查询   一个关键字,对一个字段进行查询   QueryParser qp = new QueryParser("content",analyzer); query = qp.parse(keyword); Hits hits = searcher.search(query); 模糊查询   Term term = new Term("content",keyword); FuzzyQuery fq = new FuzzyQuery(term); Hits hits = searcher.search(fq); 一个关键字,在两个字段中查询 1 ...
将源代码修改为传递字符串,去掉files以及stdin模式。 package com; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import java.io.OutputStreamWriter; import java.io.Reader; import java.io.StringReader; import java.io.StringWriter; import java.io.Writer ...
Ctrl+1 快速修复(最经典的快捷键,就不用多说了) Ctrl+D: 删除当前行 Ctrl+Alt+↓ 复制当前行到下一行(复制增加) Ctrl+Alt+↑ 复制当前行到上一行(复制增加) Alt+↓ 当前行和下面一行交互位置(特别实用,可以省去先剪切,再粘贴了) Alt+↑ ...
1. web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://jav ...
本文转自 http://www.mail-archive.com/solr-user@lucene.apache.org/msg05645.html   Hi, The method works, but has the drawback that you need to configure your solr home inside the war of the web application. What we did is the following: Add this to the jboss-service.xml <mbean code="org.jboss.na ...
Global site tag (gtag.js) - Google Analytics