小编Eme*_*son的帖子

如何使用Spring 3配置JPA?

我一直在阅读spring的文档,但我必须说它有点混乱,给出了如何配置JPA的几个不同选项.

使用弹簧3配置JPA 2(使用休眠)的最佳方法是什么?如果你有一个pom,web.xml,applicationContext.xml和任何需要的java代码的例子,请你也可以发布它.

谢谢!

java spring hibernate jpa

16
推荐指数
3
解决办法
4万
查看次数

我的固定背景使网站滚动速度非常慢,我该怎么做才能改进它?

我使用下面的CSS改变了我的讨论论坛的背景

http://forum.antinovaordemmundial.com

html {
    background: url(http://antinovaordemmundial.com/mystuff/logo_blog.jpg) no-repeat center center fixed;
    background-image: url(http://antinovaordemmundial.com/mystuff/logo_blog.jpg);
    background-repeat-x: no-repeat;
    background-repeat-y: no-repeat;
    background-attachment: fixed;
    background-position-x: 50%;
    background-position-y: 50%;
    background-origin: initial;
    background-clip: initial;
    background-color: initial;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}
Run Code Online (Sandbox Code Playgroud)

图像为1600x711和88k.页面的滚动现在非常慢.CSS有问题还是图像应该以某种方式变小?

编辑:我尝试过更改为:

body {        
    color: #000;
    font-family: Verdana, Arial, Sans-Serif;
    font-size: 13px;
    text-align: center; /* IE 5 fix */
    line-height: 1.4;
    background-attachment: fixed;
    background-clip: initial;
    background-color: #51010E;
    background-image: url(http://antinovaordemmundial.com/mystuff/logo_blog.jpg);
    background-origin: initial;
    background-position: initial initial;
    background-repeat: initial initial;
    margin-bottom: 0;
    margin-left: auto;
    margin-right: auto; …
Run Code Online (Sandbox Code Playgroud)

css background smooth-scrolling vertical-scrolling

15
推荐指数
3
解决办法
2万
查看次数

如何在svn日志中搜索

我希望能够在svn的提交日志中进行搜索.我知道你可以在乌龟身上做到这一点,但是找不到使用命令行的方法.

我们正在采用双层存储库方法,因此稳定分支只能完整地完成和测试故事.为此,我们需要一种方法在提交消息中搜索故事代码(例如:#s1322)并获取要在后续合并命令中使用的修订列表.

例如:searchsvnapp http:// [repo location root]#s1322

结果:4233,4249,4313

svn tortoisesvn merge

6
推荐指数
3
解决办法
1万
查看次数

与 JSP 等效的 Checkstyle?

有什么工具可以对 JSP 文件做 checkstyle 对 Java 文件做的事情吗?理想的情况是在 checkstyle 中包含 JSP 检查,但据我所知,这是不可能的。

例如,我想检查以下 JSP 文件:

  • 缩进样式
  • 某些构造的正确放置
  • 制表符/空格检查
  • 检查脚本的使用

谢谢艾默生

jsp coding-style indentation checkstyle

5
推荐指数
1
解决办法
1739
查看次数