Dwr 框架 自动提示:
第一步:dwr.jar 解压 得到三个文件夹 org,uk,META-INF
第二步:打开 org文件夹 中的directwebremoting 文件夹 将 dwr.xml 和 dwr20.dtd 拷贝 并且粘贴到 web-inf 下
第三步:<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE dwr PUBLIC
"-//GetAhead Limited//DTD Direct Web Remoting 2.0//EN"
"http://getahead.ltd.uk/dwr/dwr20.dtd"> 将 http://getahead.ltd.uk/dwr/ 删除
变成:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE dwr PUBLIC
"-//GetAhead Limited//DTD Direct Web Remoting 2.0//EN"
"dwr20.dtd"> 就可以了
另外 在网络中 eclipse会自动从网络上下载schema 或者 DTD 文件 并且缓存在硬盘上。
还有一种:手动添加schema文件:
window-->preferences-->myeclipse-->files and editor-->xml-->xmlcatalog
点击 add 在出现的窗口中的 key type 中 选择URL 在location中选择 file system
然后在spring解压目录的dist/resources 目录中选择spring-beans-2.5xsd, 回到设置窗口
的时候不要急着关闭窗口 应把 窗口中的 key type 改为Schema location ,key 改为
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
eclipse 编码设置:window-->preferences-->General-->Appearance-->Content Types-->Text
快捷模板:添加快捷模板:
window --> preferences-->java-->editor-->templater--new
注意点:
新工程2011/9/21导入 如果导入不进来 就得你要导入的工程放入到当前工作平台下 再次导入
编译器版本查看:
window-->preferences-->java-->compiler
Eclipse 在线安装插件: help --> softWale Updates --> find and install
第一步:dwr.jar 解压 得到三个文件夹 org,uk,META-INF
第二步:打开 org文件夹 中的directwebremoting 文件夹 将 dwr.xml 和 dwr20.dtd 拷贝 并且粘贴到 web-inf 下
第三步:<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE dwr PUBLIC
"-//GetAhead Limited//DTD Direct Web Remoting 2.0//EN"
"http://getahead.ltd.uk/dwr/dwr20.dtd"> 将 http://getahead.ltd.uk/dwr/ 删除
变成:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE dwr PUBLIC
"-//GetAhead Limited//DTD Direct Web Remoting 2.0//EN"
"dwr20.dtd"> 就可以了
另外 在网络中 eclipse会自动从网络上下载schema 或者 DTD 文件 并且缓存在硬盘上。
还有一种:手动添加schema文件:
window-->preferences-->myeclipse-->files and editor-->xml-->xmlcatalog
点击 add 在出现的窗口中的 key type 中 选择URL 在location中选择 file system
然后在spring解压目录的dist/resources 目录中选择spring-beans-2.5xsd, 回到设置窗口
的时候不要急着关闭窗口 应把 窗口中的 key type 改为Schema location ,key 改为
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
eclipse 编码设置:window-->preferences-->General-->Appearance-->Content Types-->Text
快捷模板:添加快捷模板:
window --> preferences-->java-->editor-->templater--new
注意点:
新工程2011/9/21导入 如果导入不进来 就得你要导入的工程放入到当前工作平台下 再次导入
编译器版本查看:
window-->preferences-->java-->compiler
Eclipse 在线安装插件: help --> softWale Updates --> find and install