摘要:本文只适合初接触javascript的网友。 当你进入一个网站时,是否看到里面的一个非常体贴的时间提示,好象网易社区的小秘书,会按时间提示你一些东西。其实实现起来也没什么困难,下面一步一步来吧! 1、必须取得系统当前时间,在javascript中,可以用var now = new date()来创建一时间对象,然后我们就可以用创建的date对象来取得我们需要的东西了。 年:now.getyear(......
摘要:这篇是上一篇的补充材料。 注:为便于在这里显示,我把文件中的“[”和“]”都替换为“{”和“}”了。 {logger} level=debug {config:} #file=${serverroot}/conf/workers2.properties #这里就是这个配置文件的路径 file=d:/apache/apache2/conf/workers2.properties debug=0 de......
JBoss-MySql学习笔记上一页 ... "这里出于显示的原因尖括号〈,〉都用大括号{,}替换了,使用时需重新换为尖括号" 【程序编程相关:
关于J2EE和.NET的争论(转载)】 3.3 jboss安装目录\server\default\deploy\mysql-service.xml 【推荐阅读:
动态生成JAVA代码】 {attribute name="managedconnectionfactoryproperties"} 【扩展信息:
MySQL 4.1.3 (Beta) R】 {attribute name="jndiname"}mysqlds{/attribute} {properties} {config-property name="connectionurl" type="java.lang.string"} jdbc:mysql://mysql服务器的ip地址:3306/数据库名 {/config-property} {config-property name="driverclass" type="java.lang.string"} com.mysql.jdbc.driver {/config-property} {config-property name="username" type="java.lang.string"} 输入你的用户名 {/config-property} {config-property name="password" type="java.lang.string"} 输入你的密码 {/config-property} {/properties} {/attribute} 3.4 jboss安装目录\server\default\conf\standardjbosscmp-jdbc.xml {jbosscmp-jdbc} {defaults} {datasource}java:/mysqlds{/datasource} {datasource-mapping}mysql{/datasource-mapping} 3.5 jboss安装目录\server\default\conf\standardjaws.xml {jaws} {datasource}java:/mysqlds{/datasource} {type-mapping}mysql{/type-mapping} {debug}false{/debug} ...
下一页 摘要: 自从知道了singleton(参见gof《设计模式》)这种模式之后,还没来得及有深入的理解,我就开始了对这个模式的滥用。 各种地方,尤其是在涉及到提供底层服务的地方,我都喜欢使用singleton,用以标榜“我这个只能有一个啊”。。。 然而实际上,singleton的使用应当慎之又慎——因为其实singleton是全局变量的一种变体,而全局变量的使用会导致很严重的依赖性问题(可以参考lokas《......