小编Gan*_*row的帖子

java中SOAP和RESTful Web服务之间的主要区别

跟进此帖子的问题:

目前我对SOAP和RESTful Services之间的差异略有了解.

我的问题是我何时应该使用SOAP,何时应该使用RESTful; 在性能/速度或请求处理方面,哪一个"更好"?

我正在RESTful(java)中第一次实现,我想要了解更多; 我以前处理过SOAP.

java rest soap

251
推荐指数
10
解决办法
62万
查看次数

Maven构建中的"java.lang.OutOfMemoryError:PermGen space"

我在构建Maven项目时遇到了这个错误,我增加了MAVEN_OPTS,但是我发现了一些类似的帖子,但是他们引用了其他的东西.我该如何解决?

The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError: PermGen space
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
        at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at org.codehaus.plexus.compiler.javac.IsolatedClassLoader.loadClass(IsolatedClassLoader.java:56)
        at com.sun.tools.javac.comp.Annotate.<init>(Annotate.java:52)
        at com.sun.tools.javac.comp.Annotate.instance(Annotate.java:36)
        at com.sun.tools.javac.jvm.ClassReader.<init>(ClassReader.java:215)
        at com.sun.tools.javac.jvm.ClassReader.instance(ClassReader.java:168)
        at com.sun.tools.javac.main.JavaCompiler.<init>(JavaCompiler.java:293)
        at com.sun.tools.javac.main.JavaCompiler.instance(JavaCompiler.java:72)
        at com.sun.tools.javac.main.Main.compile(Main.java:340)
        at com.sun.tools.javac.main.Main.compile(Main.java:279)
        at com.sun.tools.javac.main.Main.compile(Main.java:270)
        at com.sun.tools.javac.Main.compile(Main.java:87)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.plexus.compiler.javac.JavacCompiler.compileInProcess(JavacCompiler.java:420)
        at org.codehaus.plexus.compiler.javac.JavacCompiler.compile(JavacCompiler.java:141)
        at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:493)
        at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) …
Run Code Online (Sandbox Code Playgroud)

java out-of-memory permgen maven

183
推荐指数
3
解决办法
21万
查看次数

数据库架构的目的是什么?

数据库架构的目的是什么?我在哪里可以找到更多相关信息?它不是表,它不是数据库,它是什么?

database schema database-design

176
推荐指数
6
解决办法
23万
查看次数

每6个小时在linux上运行一次cron工作

我如何每天六小时运行命令?试过这个不起作用:

/6 * * * * *  mycommand
Run Code Online (Sandbox Code Playgroud)

linux cron crontab

129
推荐指数
4
解决办法
18万
查看次数

maven构建失败:无法找到Javac编译器:jre或jdk问题

我将JAVA_HOME设置为

C:\Program Files (x86)\Java\jdk1.6.0_18
Run Code Online (Sandbox Code Playgroud)

在我运行maven安装后,我从eclipse获得此消息:

原因:

Unable to locate the Javac Compiler in:
  C:\Program Files (x86)\Java\jre6\..\lib\tools.jar
Please ensure you are using JDK 1.4 or above and
not a JRE (the com.sun.tools.javac.Main class is required).
In most cases you can change the location of your Java
installation by setting the JAVA_HOME environment variable.
Run Code Online (Sandbox Code Playgroud)

我确信这是棘手的部分

请确保您使用的是JDK 1.4或更高版本,而不是JRE

当我将配置运行到JRE6时,如何将其更改为已安装的JDK 1.6

编辑

我甚至试图修改插件:

<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.0.2</version>
                <configuration>
                    <source>1.6</source>
                    <target>1.6</target>
                    <executable>C:\Program Files (x86)\Java\jdk1.6.0_18\bin</executable>
                </configuration>
            </plugin>
Run Code Online (Sandbox Code Playgroud)

我仍然得到同样的错误

也许我忘了说我使用eclipse maven插件..如何在eclipse中从JRE更改为JDK?

java eclipse maven

108
推荐指数
5
解决办法
17万
查看次数

XML和XSD有什么区别?

可扩展标记语言(XML)和XML Schema(XSD)之间有什么区别?

xml xsd

104
推荐指数
5
解决办法
12万
查看次数

在Windows上的Maven 2下设置Java堆空间

我在构建项目期间收到此消息

java.lang.OutOfMemoryError:Java堆空间

我如何增加堆空间,我有8Gb或RAM是不可能的,maven消耗了那么多,我发现这个http://vikashazrati.wordpress.com/2007/07/26/quicktip-how-to-increase-the -java-heap-memory-for-maven-2-on-linux /如何在linux上执行它,但我在Windows 7.如何在Windows下更改java堆空间?

maven-2

91
推荐指数
4
解决办法
15万
查看次数

servlet和Web服务之间的区别

这两个有什么区别?我在google上找到的结果很少,没有结论.

这是一个跟进问题:

假设我使用@Controller注释创建spring mvc web app注释几个类,并创建一些将成功从前端传输一些信息的东西 - >后端,反之亦然,也许某些数据库可能涉及到后端端.

你会怎么称呼它?休息Web服务或servlet或其他什么?

java rest spring web-services terminology

84
推荐指数
3
解决办法
8万
查看次数

如何更改maven程序集插件生成的war名称

如何将名称更改为其他名称1.0.snapshot-jar-with-dependencies,以下是我的POM的内容:

<build>
    <plugins>
        <plugin>
            <artifactId>maven-assembly-plugin</artifactId>
            <version>2.2-beta-5</version>
            <configuration>
                <archive>
                    <manifest>
                        <mainClass>com.package.example.MainClass</mainClass>
                    </manifest>
                </archive>
                <descriptorRefs>
                    <descriptorRef>jar-with-dependencies</descriptorRef>
                </descriptorRefs>
            </configuration>
        </plugin>
    </plugins>
</build>
Run Code Online (Sandbox Code Playgroud)

maven-2

83
推荐指数
3
解决办法
8万
查看次数

单选按钮和标签显示在同一行

为什么我的标签和单选按钮不会停留在同一行,我该怎么办?

这是我的表格:

<form name="submit" id="submit" action="#" method="post">
            <?php echo form_hidden('what', 'item-'.$identifier);?>

            <label for="one">First Item</label>
            <input type="radio" id="one" name="first_item" value="1" />

            <label for="two">Second Item</label>
            <input type="radio" id="two" name="first_item" value="2" />             <input class="submit_form" name="submit" type="submit" value="Choose" tabindex="4" />
            </form>
Run Code Online (Sandbox Code Playgroud)

html css

67
推荐指数
6
解决办法
26万
查看次数