`
yourenyouyu2008
  • 浏览: 281616 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
网上有很多关于tomcat7-maven-plugin插件中的deploy使用说明,但都不是很具体,经过不断重试整理如下。 1) deploy是基于tomcat的manager功能的,首先配置manager相关的角色 在文件中配置apache-tomcat-7.0.54\conf\tomcat-users.xml <role rolename="manager-script"/><!--脚本发布 --> <role rolename="manager-gui"/><!--人工发布 --> &l ...
分别指定server path和deploy path server path中第2项会启动安装的tomcat下面webapps中的项目,第1项不会,只会启动deploy path指定的项目    
ConcurrentMap为map增加原子方法,用于同步操作。 V putIfAbsent(K key, V value); 如果map中还没有key就添加,有key就直接返回key对应的value      * <pre>     *   if (!map.containsKey(key))     *       return map.put(key, value); //put方法the previous value associated with key, or null if there was no mapping for key     *   else   ...
http://blog.sina.com.cn/s/blog_6fe280b701012trj.html 1.pom.xml配置发布的release仓库和snapshot仓库  <distributionManagement>  <snapshotRepository>   <id>snapshots-riil</id>   <name>Snapshots</name>   <url>http://172.16.13.111:8081/nexus/content/repositories/snapshots ...
Exception:CompilerException: tools.jar not found: jre7\..\lib\tools.jar     Condition:在使用Maven打包项目的时候出现这个异常,提示tools没有找到。     解决:确定你的eclipse在 首选项--》java--》installed JREs里面的jre指向的是JDK而不是JRE,tools.jar是JDK才有的。当然,你也可以在环境变量classpath里面将jdk的lib目录加加进去。
 <bean id="freemarkerConfig"  class="org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer"> spring 集成freemarker一直报  Caused by: java.lang.ClassNotFoundException: org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer 但spring-webmvc.jar中确实有这个类 ...
JavaBean的命名规则     http://blog.csdn.net/antswallow/article/details/4459008 不遵循规范的后果:各种框架直接通过规范来相互使用,ide,el表达式等都使用该规范。比如jsontojava,是利用javabena规范进行转换的,下面示例导致tPLPoints属性不能被json to string private List<TPLPoint> tPLPoints; t没有大写导致的问题。经过几天的调试才发现这个问题。 Sun 推荐的命名规范 1 ,类名要首字母大写,后面的单词首字母大写 2 ,方法名 ...
是否两个选项的单选框,后台使用boolean接收,value值使用 on/off或 1/0都可以转成boolean <td>是否需要用户所在地信息</td> <td><input type="radio" name="needUserLocation" value="on" <#if sysInfoCFG.needUserLocation> checked</#if> > 是 <input type="rad ...

freemarker细节整理

    博客分类:
  • mvc
1)function定义最好每个属性都给出默认值,如果没有默认值,调用时传入的参数是null(或空)时会找不到对应的函数。下面示例中当spaceCategory1.usedUrl时空时执行进入不到_nullTo里面 示例:如果url是空设置url为#<a href="${fn._nullTo(spaceCategory1.usedUrl,'#')}">--> <#function _nullTo param to>    <#if param!=''>    <#return param>    <#else& ...
<a href=''>href为空时有些浏览器会将当前浏览器地址中的部分url当做点击的url,有些浏览器则不会。 所以href不能为空,空时给#,如下处理 <#if spaceCategory1.usedUrl==''>                <a href="#">                <#else>                <a href="${spaceCategory1.usedUrl}">                </#if>

spring资料

spring组件扫描<context:component-scan/>使用详解 http://blog.sina.com.cn/s/blog_5114d71d0100rk7b.html 。。 有了<context:component-scan>,另一個<context:annotation-config/>標籤根本可以移除掉。。。   use-default-filters:默认true,会忽略下面的子元素,如<context:include-filter,这样会扫描内置的 @Component、@Service和 @Controller等 ...
  转载地址:http://www.cnblogs.com/bobzeng/articles/1877140.html 一般的Web项目都会在web.xml中加入Spring监听器,内容如下:
spring启动流程 AbstractApplicationContext 构造好beanFactory后遍历每个定义的bean,如果需要生成实例就生成实例 protected void finishBeanFactoryInitialization(ConfigurableListableBeanFactory beanFactory) {        // Initialize conversion service for this context.        if (beanFactory.containsBean(CONVERSION_SERVICE_BEAN_NAME) ...
本文原文连接: http://blog.csdn.net/bluishglc/article/details/7612811 ,转载请注明出处! 1.XA   XA是由X/Open组织提出的分布式事务的规范。XA规范主要 定义了(全局)事务管理器(Transaction Manager)和(局部)资源管理器(Resource Manager)之间的接口。XA接口是双向的系统接口,在事务管理器(Transaction Manager)以及一个或多个资源管理器(Resource Manager)之间形成通信桥梁。XA之所以需要引入事务管理器是因为,在分布式系统中,从理论上讲(参考Fische ...
配置类对象数量不多,标识固定(通过标识可以获得唯一对象),但是种类较多,每种类都有自己独特的属性,如果每种类都使用一个表来存储,那么会产生大量的表,可以考虑将对象直接存储的方式来使用单独的表存储所有的 ...
Global site tag (gtag.js) - Google Analytics