小编Pun*_*cky的帖子

打印所有加载的Spring bean

有没有办法打印启动时加载的所有spring bean?我使用的是Spring 2.0.

java spring

81
推荐指数
7
解决办法
7万
查看次数

javax.servlet.jsp.PageContext无法解析为类型

我在jsp页面中看到以下错误 -

javax.servlet.jsp.PageContext cannot be resolved to a type
javax.servlet.jsp.JspException cannot be resolved to a type
Run Code Online (Sandbox Code Playgroud)

我看过一篇关于此的帖子,并尝试了一些建议的事情.BalusC提供了很好的输入 - JSTL1.2和Standard.jar不能一起使用.我做了这个,它解决了一段时间的问题 - 但它再次出现.我不确定我是否还有罐头碰撞.我已经将所有jar定义为Maven中的依赖项.以下是我指定pom.xml的依赖项 -

<dependencies>
    <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>3.8.1</version>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>commons-fileupload</groupId>
        <artifactId>commons-fileupload</artifactId>
        <version>1.2.1</version>
    </dependency>
    <dependency>
        <groupId>javax.servlet</groupId>
        <artifactId>servlet-api</artifactId>
        <version>2.5</version>
    </dependency>
    <dependency>
        <groupId>com.jcraft</groupId>
        <artifactId>jsch</artifactId>
        <version>0.1.38</version>
    </dependency>
    <dependency>
        <groupId>javax.servlet</groupId>
        <artifactId>jstl</artifactId>
        <version>1.2</version>
    </dependency>
    <dependency>
        <groupId>commons-logging</groupId>
        <artifactId>commons-logging</artifactId>
        <version>1.1.1</version>
    </dependency>
    <dependency>
        <groupId>log4j</groupId>
        <artifactId>log4j</artifactId>
        <version>1.2.15</version>
        <exclusions>
            <exclusion>
                <groupId>javax.jms</groupId>
                <artifactId>jms</artifactId>
            </exclusion>
            <exclusion>
                <groupId>com.sun.jmx</groupId>
                <artifactId>jmxri</artifactId>
            </exclusion>
            <exclusion>
                <groupId>com.sun.jdmk</groupId>
                <artifactId>jmxtools</artifactId>
            </exclusion>
        </exclusions>
    </dependency>
    <dependency>
        <groupId>commons-configuration</groupId>
        <artifactId>commons-configuration</artifactId>
        <version>1.6</version>
    </dependency>
    <dependency>
        <groupId>org.apache.tiles</groupId> …
Run Code Online (Sandbox Code Playgroud)

jsp servlets jstl maven

43
推荐指数
3
解决办法
9万
查看次数

Spring Boot - 限制创建的连接数

我使用Spring Boot开发了一个微服务.我通过存根后端调用来测试服务的性能.当我查看线程计数时,我发现在任何时间点创建到服务的最大线程数是20,即使调用的数量要高得多.对于可以对使用Spring Boot开发的微服务进行的调用次数是否有任何限制.请您指导我需要遵循哪些步骤来排除故障/增加服务接受的连接数量?

java spring spring-boot pivotal-cloud-foundry

31
推荐指数
4
解决办法
5万
查看次数

懒散的webhook html表

我有一个html表,我试图通过webhook发布松弛.有没有办法发布html表松弛?下面是html代码 -

<!DOCTYPE html>
<html>
<head>
<title>HTML Tables</title>
</head>
<body>
<table border="1">
<tr>
<td>Row 1, Column 1</td>
<td>Row 1, Column 2</td>
</tr>
<tr>
<td>Row 2, Column 1</td>
<td>Row 2, Column 2</td>
</tr>
</table>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)

webhooks slack-api slack

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

打印所有加载的Spring bean - Spring Boot

我怎样才能知道作为我的春季启动应用程序的一部分加载的所有bean的名称?我想在main方法中有一些代码来打印服务器启动后加载的bean的详细信息.

spring spring-boot

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

Maven Dependencies Eclipse

我在我的pom中添加了下面的描述

     <dependency>
        <artifactId>richfaces-api</artifactId>
        <groupId>org.richfaces.framework</groupId>
        <version>3.3.3.Final</version>
    </dependency>

      <dependency>
        <groupId>org.richfaces.ui</groupId>
        <artifactId>richfaces-ui</artifactId>
        <version>3.3.3.Final</version>
    </dependency>

   <dependency>
        <artifactId>richfaces-impl</artifactId>
        <groupId>org.richfaces.framework</groupId>
        <version>3.3.3.Final</version>
    </dependency>
Run Code Online (Sandbox Code Playgroud)

当我在命令提示符下执行mvn clean install时,会下载这些依赖项jar.但是在Eclipse中,这并未显示在引用的库部分下.尽管如此,其他jar文件仍然是依赖项的一部分.我必须做些什么来反映这一点吗?谢谢.

java richfaces pom.xml maven

23
推荐指数
2
解决办法
8万
查看次数

JSF编号验证

JSF中是否有任何内置的数字验证器标签,用于检查在h:inputext字段中输入的输入是否为数字?

第一个问题得到了解答.编辑解释下一个问题:

<h:inputText id="maxrecs" value="#{simpleBean.numRecords}" required="false" maxlength="4" >                         
    <f:convertNumber longOnly="true"/>
</h:inputText>
Run Code Online (Sandbox Code Playgroud)

支持Bean

private long numRecords = null;
Run Code Online (Sandbox Code Playgroud)

如果我在辅助bean中使用String或Integer对象,则不会设置值.现在当我使用原始int时,屏幕上会打印出0.我想屏幕是空的.

jsf

20
推荐指数
3
解决办法
7万
查看次数

XML over HTTP和SOAP over HTTP之间的区别

SOAP over HTTP是HTTP上的XML的一个子集,因为我假设SOAP也是一个确认模式(SOAP模式)的XML吗?我假设可以使用GET或POST方法访问XML over HTTP服务.SOAP over HTTP总是使用POST方法吗?对于基于HTTP的XML,我假设缺点是必须与所有使用者共享模式文件,而在SOAP over HTTP的情况下,它将是单个WSDL文件.是否有可能帮助让我知道一方面的差异和优势?

service soap web-services http xmlhttprequest

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

Spring Framework中的CGLIB是什么?

什么是CGLIB以及它与Spring的关系?在使用Spring Framework时,我们是否必须明确定义CGLIB的用法?

spring code-generation cglib

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

在POM的WEB-INF\lib中添加jar

我有几个jar文件,我没有从任何存储库获取.我有这些jar文件在WEB-INF\lib文件夹中的src目录.有没有办法在POM中添加这些作为依赖项而不指定jar文件的实际路径(相对路径很好..)?

java eclipse pom.xml maven

18
推荐指数
1
解决办法
2万
查看次数