`
tomcatlee
  • 浏览: 34354 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表
已经下载到电脑上的软件不能通过itunes同步到手机.在itunes中:帮助->运行诊断程序后解决
详细介绍如下: http://movingfulcrum.tumblr.com/post/58820190063/eclipse-vs-intellij-dilemma-to-auto-save-or-not 使用这个功能Eclipse可以在文件保存之后自动做如下动作:自动Format代码,去掉多余的注释,空格,行,自动引入包,去掉不必要的包,去掉没有被引用的变量,自动加上注释(@Override,@Deprecated)等.
<html> <head> <script type="text/javascript"> var dont_confirm_leave = 0; //set dont_confirm_leave to 1 when you want the user to be able to leave withou confirmation var leave_message = '确实要关闭吗?' function goodbye(e) { if (dont_confirm_leave !== 1) { if (!e) e ...
1.可用注释:@RequestMapping @RequestParam @ModelAttribute,可用于Servlet MVC 和Portlet MVC 2.自动检测: <context:component-scan base-package="org.springframework.samples.petclinic.web"/> 3.支持URI template @RequestMapping(value="/owners/{ownerId}", method=RequestMethod.GET) public String fi ...
1.目前Spring支持JRuby Groovy BeanShell 2.在配置文件里面声明 <lang:groovy id="messenger" script-source="classpath:Messenger.groovy"> <lang:property name="message" value="I Can Do The Frug" /> </lang:groovy> 3.动态语言写成的Bean具有‘refreshable bean’的功能,修改源码不需要重启,不 ...
1.框架进行exception的转换, 2.为Dao提供注视 @Repository,下面是JPA的例子 @Repository public class JpaMovieFinder implements MovieFinder { @PersistenceContext private EntityManager entityManager; // ... } 为什么我的entityManager总是null? 3.JdbcTemplate,SimpleJdbcInsert,SimplejdbcCall 需要DBC 2.0-compliant driver,高级功能需要JDBC 3 ...
1,如果grub损坏,启动的时候进入rescue模式(不能进入操作系统选择菜单),可以按下面的方式修复: set root=(hd0,x) set prefix=(hd0,x)/root/grub insmod normal normal 其中x视你自己的系统而定。应该就能进入操作系统选择菜单。 2,重新安装操作系统后不能进入ubuntu. 用ubuntu live CD启动。 打开命令行终端 输入以下命令    sudo mkdir /mnt/root   sudo mount -t ext4 /dev/sda7 /mnt/root  (ext4这里要改成你自己的文件系统格式, ...
  这下限制新闻评论的限制不好搞了。
Google application engine也支持java了,现在可以用grails框架在google云中免费快速的搭建你的网站.下面是详细步骤: 1.申请GAE: http://appengine.google.com/ 获得一个application id,例如 myapp 2.用这个application id在grails中创建一个应用程序 grails create-app myapp 3.卸载缺省安装的hibernate插件 cd myapp grails uninstall hibernate 4.下载google app engine开发包 http://code.go ...
怎么制作: http://www.ibm.com/developerworks/cn/xml/tutorials/x-epubtut/index.html epub电子书资源下载: http://www.epubbooks.com/ epub阅读器: http://www.fbreader.org/ http://www.epubbooks.com/ebook-readers 期待有自己的手持阅读器
如有中文乱码,需要修改: 1.mysql目录下的my.ini,在[mysqld]和[mysql]下面添加: default_character_set=utf8 2.修改Datasource.groovy中的数据库url url = "jdbc:mysql://localhost/mydb?useUnicode=true&characterEncoding=utf-8" 添加后面的useUnicode=true&characterEncoding=utf-8参数. 在mysql命令行输入下面的命令 show variables like 'character ...
请看这个视频: http://s3.amazonaws.com/g2onescreencasts/gitGrailsScreencast_web_final_compressed.mov 最方便的地方在于在各个版本之间切换非常简单,而且马上可以在页面上看到效果 在这里下载git for windows: http://msysgit.googlecode.com/files/Git-1.6.3.2-preview20090608.exe 使用步骤: grails create-app gitdemo cd gitdemo grails -clean git init git add . gi ...
论坛: http://www.coderanch.com/forums/f-90/Groovy http://www.grails.org.tw http://www.nabble.com/grails---user-f11861.html blog: http://weblog.dangertree.net/ 视频教程: http://grails.org/Grails+Screencasts 教程: http://www.ibm.com/developerworks/cn/java/j-grails/ 电子书: Grails in Action.pdf grailsqr-1.1.0.pdf ...
grails install-templates的用法 运行这个命令后,会在src\templates\下生成一系列文件,修改其中的模板文件会让以后用命令行生成的文件按照这些模板来产生. 例子:很多action都需要认证,可以先生成一个base action: class SecuredBaseController {     def beforeInterceptor = [action:this.&auth]     def auth() {         if(!session.user) {             redirect(controller:'authent ...
1.下载eclipse的groovy插件 2.新建java工程 3.在工程的名字上面点击右键,在弹出的窗口中选add groovy nature 4.设置工程property属性,参见附件截图,去掉disable groovy compiler generating class file 4.新建一个groovy类 5.运行。run as java application
Global site tag (gtag.js) - Google Analytics