bug-x的博客
bug-x · 共 3 篇文章
网站上线前必做的30个检查
网站上线前务必做好以下30个检查,防止上线后出乱子。 1.所有的文本内容都没有错别字? 2.文案的语句通顺、连贯? 3.页面和内容格式已测试? 4.用于打印的CSS样式已测试? 5.恰当的Meta信息已添加? 6.robot.txt文件已添加? 7.sitemap文件已添加? 8.各个页面的标题具有描述性且是SEO友好的? 9.图片有合适的alt属性? 10.页面的title属性合适且SEO友好? 11.Favicon已添加且能正确显示? 12.页脚中添加了版权和网站创建者信息? 13.HTML通过了W3C验证? 14.CSS通过了W3C验证? 15.网站中没有死链? 16.JavaScri…
2012-10-15 09:47 · 网站 · 评论(0)
你所不知道的提高spring+hibernate性能的一个方法
在spring + hibernate的应用中,你监控mysql日志,你会发现大量的log如下: Java代码 [code="java"] 158268 Query SET autocommit=1 158268 Query SET autocommit=1 158268 Query SET autocommit=1 158268 Query SET autocommit=0 158268 Query commit 158268 Query SET autocommit=1 158268 Query SET autocommit=1 158268 Query SET autocommit=1…
2012-10-15 09:31 · hibernate · 评论(0) · Spring · MySQL · Hibernate
spring中ResourceBundleMessageSource与ReloadableResourceBundleMessageSource查找资源的区别
spring中ResourceBundleMessageSource与ReloadableResourceBundleMessageSource查找资源的区别: 1.ResourceBundleMessageSource在xml配置中无法指定编码: error message 而ReloadableResourceBundleMessageSource可以指定编码,譬如: 2.加载资源文件的方式不同: 1).下面看下它们的源代码: ResourceBundleMessageSource的加载,使用ClassUtils.getDefaultClassLoader()加载器,getDefault…
2012-10-15 09:26 · spring · 评论(0) · Spring · 编程