
spring
使用,扩展或开发spring的人员的问答
文章 47浏览 190Spring JPA (Hibernate) No qualifying bean of type: javax.persistence.EntityManagerFactory
SpringJPA(Hibernate)Noqualifyingbeanoftype:javax.persistence.EntityManagerFactory我正在使用Spring-boot,因此在Tomcat7中部署了一场war。当我启动应用程序时,我得到以下信息:Dec30,20137:41:06PMorg.apache.catalina.core.ApplicationContextlo…RestController – 将 POST 请求转发到外部 URL
RestController-ForwardPOSTrequesttoexternalURL我正在寻找一种方法,如何转发已向@RestController类中的端点发出的POST请求,并将其转发到外部URL,而正文和标头未受影响(当然还从该API返回响应),是可以通过使用一些弹簧功能来做到这一点吗?我发现的唯一解决方案是从@RequestBody中提取主体,从HttpServletRequest中…ConverterNotFoundException 在 spring 集成中将字符串对象发送到 rest 服务
ConverterNotFoundExceptiononsendingastringobjecttorestserviceinspringintegration我正在尝试通过http:outbound-gateway.从spring-integration向REST服务发送JSON字符串但得到错误Noconverterfoundcapableofconvertingfromtypejava.lan…Spring Security 身份验证管理器不会在自定义过滤器上被选中
SpringSecurityauthenticationmanagerwon'tgetpickeduponcustomfilter我正在尝试创建一个自定义过滤器来处理身份验证,因为我被迫使用AD和本地数据库(arg!)的组合来确定访问权限。我正在使用官方文档,对于这个特定的问题,主要是这部分。但是,当我运行我的服务器时,它抱怨AuthenticationManager为空,而我相信我在XML中设置…Spring Security JAAS 认证授权问题
SpringSecurityJAASAuthenticationAuthorizationIssue在SpringSecurity中,我使用DefaultJaasAuthenticationProvider配置使用linux用户名/密码进行登录身份验证。JpamLoginModule用于身份验证。我通过身份验证成功,但我在授权(ROLE_USER,ROLE_ADMIN)中遇到问题,我收到HTTP状…spring-data-gemfire 的启动但没有运行定位器
Startupofspring-data-gemfirewithoutlocatorrunningyet我们有一个使用Gemfire和spring-data-gemfire的Java大型Web应用程序。我们在客户端服务器配置中运行gemfire。我们遇到如下问题:启动过程中,在bean连线阶段,spring-data-gemfire要连接gemfire的定位器。但是,定位器可能尚未启动。然后应用程…Spring Social for Facebook – 获取用户位置
SpringSocialforFacebook-getuserlocation我正在使用springsocialFacebook连接到facebook。连接效果很好。我正在尝试使用以下代码获取用户的位置:FacebookProfileprofile=facebook.userOperations().getUserProfile();ReferencerLocation=profile.getLo…为什么 HATEOAS 在使用 Swagger 2.x 启动期间开始为 spring-boot 版本> = 2.2.x 创建问题?
WhyHATEOASstartscreatingissueforspring-bootversion>=2.2.xduringstartupwithSwagger2.x?我将我的项目从spring-boot2.1.9移动到2.2.0。在启动项目时,我面临以下error消息。Causedby:org.springframework.beans.factory.NoUniqueBeanDefin…Spring部署设置openshift
Springdeploymentsettingsopenshift我有一个问题让我抓狂了三天。我根据OpenShift帐户上的教程部署了spring-eap6-quickstart代码。我已配置调试选项,并且已将Eclipse工作区与OpehShift服务器同步-服务器上的一切工作正常,但在Eclipse中出现无法消除的错误。我有这个错误:cvc-complex-type.2.4.a:Invali…SFTP : BeanPostProcessor 干扰 @ServiceActivator 和 @MessagingGateway
SFTP:BeanPostProcessorinterferewith@ServiceActivatorand@MessagingGateway似乎BeanPostProcessor接口实现对@ServiceActivator产生了影响。将BeanPostProcessor与@ServiceActivator一起使用的方式应该是什么。谢谢。这里有完整的日志logs以下是用于SFTP的JavaCon…Spring StandardTypeLocator in StandardEvaluationContext: 注册新的导入前缀以在 Thymeleaf 模板中使用
SpringStandardTypeLocatorinStandardEvaluationContext:registeringnewimportprefixesforuseinThymeleaftemplates我们正在使用视图层中的Thymeleaf模板库和提供SPEL支持的ThymeleafSpringTemplateEngine开发一个SpringMVC(v4)Web应用程序。当我们在模板…Purpose of Bean annotations for non-Job methods in trivial Spring Batch example
PurposeofBeanannotationsfornon-JobmethodsintrivialSpringBatchexample我正在熟悉整个Spring堆栈。我在这里指的是spring.io上发布的一个简单的SpringBatch示例:https://spring.io/guides/gs/batch-processing/作业配置类BatchConfiguration中的每个方法都使用…IP 过滤器使用 Spring Security
IPfilterusingSpringSecurity我想知道如何使用SpringSecurity通过IP过滤用户对我的Web应用程序的访问。我应该扩展AbstractAuthenticationProcessingFilter或类似的东西并以我自己的方式覆盖它的方法吗?如果是这样,您能否在web.xml中给出这样的扩展示例和过滤器描述示例?提前致谢。附言在我的应用程序中,我也有SpringSec…CSS未在Spring Boot中加载
CSSnotloadinginSpringBoot我是Spring框架和SpringBoot的新手。我正在尝试使用CSS、javascript、js添加静态html文件。文件结构是我的html文件头看起来像这样<htmlxmlns:th="http://www.thymeleaf.org"><head>HeavyIndustrybyHTML5Templates.com<…@RequestMapping欢迎文件
@RequestMappingwelcomefile我的目标是将/{anypath}和*.html映射到不映射/*的servlet。例如:map:/foo/foobar//bar.html/foo/bar.htmldon'tmap:/foo.js/bar.pdf<servlet-mapping><servlet-name>someServlet</servlet-na…