-
1 votes1 answers1138 views
Jhipster Angular 4(空白页)
我正在尝试生成一个带有jhipster和angular 4的应用程序 . 它适用于角度js,但是使用角度4,我可以运行应用程序,但我有一个空白页面,没有错误 我怎么能解决这个问题? 编辑: 我用intelliJ运行应用程序,得到了这个: Intellij 我尝试了纱线开始,得到了这个: Yarn 但这次它奏效了 我真的没有得到intellij,spring boot,yarn start或mvwn... -
2 votes0 answers747 views
Spring抛出死锁但mysql状态很明显
Spring Application抛出DeadLock异常:(目标方法使用默认的@Transactional注释进行注释) org.springframework.dao.DeadlockLoserDataAccessException: PreparedStatementCallback; SQL []; Deadlock found when trying to get lock; try ... -
6 votes2 answers403 views
Spring Boot Multipart文件上传产生格式错误的多部分请求
我目前正在运行Spring Boot v1.3.0.BUILD-SNAPSHOT和Spring v4.2.2.BUILD-SNAPSHOT . 如果我尝试执行多文件上传(通过角度): myService.upload = function(name ,content) { var fd = new FormData(); fd.append('name', name); f... -
1 votes2 answers899 views
Neo4j 4.0.0抛出NullPointerException
我是 Spring 季启动和ne04j的新蜜蜂 . 我正在开发包含2个模块web和核心的项目.Web(包作为战争)模块包含spring控制器和Core(包作为jar)模块包含neo4j存储库和域 . Web模块包含Core模块作为jar . 当我使用java -jar web / target / my-project-1.0-SNAPSHOT.war运行项目时,它抛出NullPointerEx... -
0 votes3 answers1633 views
多部分文件超出限制异常
我使用SPring启动来开发我的系统,但是在上传超过1MB的文件时使用此异常(使用多部分文件类型) . 有谁可以向我解释一下?谢谢 java.lang.IllegalStateException:Multipart Mime零件文件超出了org.eclipse.jetty.util.MultiPartInputStreamParser $ MultiPart.write(MultiPartInp... -
0 votes1 answers802 views
Spring Boot:异常处理,如果应用程序启动后mongo diconnects
我的 Spring 季启动应用程序在启动时使用mongo,它启动非常顺利 . 启动后,我关闭mongo并点击我的应用程序的任何控制器 . 但控件永远不会达到控制器级别因此@ControllerAdvice无法处理mongo异常 . 我还尝试创建一个通用异常处理程序,并在application.java中注册该类 @Bean public EmbeddedServletContainerCustom... -
0 votes2 answers1391 views
如何使用Spring MVC框架为Spring Boot应用程序加载jsp页面?我得到空指针异常
当我的代码试图查找并加载jsp页面时,我总是得到一个空指针异常 . 这是一个Spring Boot应用程序,我正在尝试使用最新的Spring MVC框架 . 请注意,我在jar中部署应用程序而不是war文件 . 所以我的项目中没有WEB-APP文件夹或web.xml等 .我在src / main / resources下有文件夹"templates",其中放置了ViewName... -
0 votes1 answers604 views
将 spring 从3.2升级到4 - 使用泛型问题(扩展)
我有以下代码与spring 3.2一起使用,并在Spring 4.0.0上失败并出现“NoSuchBeanDefinitionException”.RELEASE public interface Cacheable { } public class TimeUnit implements Cacheable { } @Component public ... -
4 votes1 answers1431 views
spring boot:注入自动连接的依赖项失败;
它在启动springboot应用程序时出现了一些异常 . 我不知道我错过了什么 . 这是我的代码:这是入口: package com.kindlepocket.web; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplica... -
0 votes3 answers310 views
Spring Boot中的分析
我使用Spring Initializr生成了一个Spring Boot Web应用程序,使用嵌入式Tomcat Thymeleaf模板引擎,并将package作为可执行JAR文件 . 使用的技术: Spring Boot 1.4.2.RELEASE,Spring 4.3.4.RELEASE,Thymeleaf 2.1.5.RELEASE,Tomcat Embed 8.5.6,Maven 3,Ja... -
0 votes1 answers352 views
无法在Spring启动(Eclipse)中找到@EnableAutoConfiguration或@SpringBootApplication
我之前使用的是Spring Boot 1.1.6,在我的新项目中我尝试使用最新的1.5.4版本,但我找不到@EnableAutoConfiguration或@SpringBootApplication来添加到我的主类 . 我可以在classpath中找到spring boot auto配置jar . 有人可以解释如何使用最新版本(1.5.4)配置 spring 启动吗? -
0 votes2 answers191 views
Spring Security SAML扩展java.lang.AbstractMethodError
大家好我正在尝试将SAML扩展集成到我的项目中,并且在构建它时遇到以下异常,我正在使用 Spring 4.1.5 java.lang.AbstractMethodError:javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava / lang / String; Z)V org.opensaml.xml.parse.BasicParse... -
0 votes1 answers334 views
jhipster应用程序失败运行:不支持的major.minor版本52.0
我创建了一个jhipster应用程序并在inteljidea上运行它,我收到了这个错误: org.springframework.beans.factory.BeanDefinitionStoreException:无法读取候选组件类:URL [jar:file:/Users/retina/.m2/repository/io/springfox/springfox-swagger2/2.0.3/... -
6 votes1 answers1234 views
无法加载ApplicationContext(带注释)
这是我的考试班 . @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(classes = AppConfig.class, loader = AnnotationConfigContextLoader.class) public class UserServiceImplIT { @Autowired private ... -
0 votes3 answers1023 views
Jenkins无法创建entityManagerFactory
我为我的应用程序创建了以下测试: @RunWith(SpringRunner.class) @SpringBootTest(classes = Application.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) public class exampleTests { @Autowired p... -
2 votes1 answers535 views
Spring Batch配置异常
我有下一个 Spring 季批处理配置类: @Configuration @EnableBatchProcessing public class BatchJobConfiguration { @Autowired private JobBuilderFactory jobBuilderFactory; @Autowired private StepBuilde... -
0 votes1 answers143 views
工厂方法'stringHttpMessageConverter'抛出异常;嵌套异常是java.lang.NullPointerException
我在我的stanalone应用程序中使用Springboot Spring JPA . 但我正在跟踪错误: 引起:org.springframework.beans.BeanInstantiationException:无法实例化[org.springframework.http.converter.StringHttpMessageConverter]:工厂方法'stringHttpMessa... -
2 votes2 answers1330 views
创建RestHighLevelClient bean时出现NoClassDefFoundError错误
我在SpringBoot应用程序中创建HighEndRestClient bean时遇到错误 . 我已经完成了一个测试'app',我检查了我可以实例化我想要的对象,然后拨打我想要的电话,现在我正在制作新的应用程序 . 我在pom中有这些依赖项 <dependency> <groupId>org.elasticsearch.client</groupId... -
0 votes1 answers19 views
我的bean总是在注入后返回null
这是我的代码,我不知道为什么我的bean MouvementToMapItemProcessor 没有注入,它在构造函数中始终为null @Autowired private MouvementToMapItemProcessor mvts; private Iterator it; public InMemoryMouvementReader() { ... -
3 votes1 answers1619 views
Spring Security Kerberos AD,校验和失败
我正在尝试使用http://docs.spring.io/spring-security-kerberos/docs/1.0.1.RELEASE/reference/htmlsingle/#samples-sec-server-win-auth中所述的Active Directory凭据执行Spring Security Kerberos . 我已经完成了大部分工作(SPN,keytabs等) .... -
2 votes1 answers647 views
如何在部署到远程Tomcat时修复'nested exception is org.hibernate.exception.JDBCConnectionException'?
当我尝试将我的应用程序部署到远程tomcat服务器时,出现以下错误: org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.transaction.CannotCreateTransactionException:... -
0 votes1 answers1037 views
ModelMapper异常 - 无法强制转换为org.modelmapper.internal.Mutator
我正在接受这个例外的吼叫异常 . 我正在使用modelmapper来转换我的项目中的类 . Deal和DealDocument类是相同的 . 交易文件类如下: public class DealDocument extends Deal implements Serializable { private static final long serialVersionUID = 12390... -
0 votes0 answers1150 views
尝试将文件上载到文件夹时出错
我试图将文件上传到文件夹,文件路径的值从ajax调用成功传递给控制器类,但在这个类上我得到错误: 当前请求不是多部分请求 这是我的代码: @RequestMapping(value = "/event/uploadFile",headers=("content-type=multipart/*"), method = RequestMethod.PO... -
0 votes1 answers1542 views
通过BroadLeaf管理站点添加了类别,但无法在站点中查看
使用Broadleaf 5.2.1-GA Edition [许可],请帮助我通过管理站点添加类别 . 站点模块上发生错误 . 站点应用程序中发生错误 . 错误原因 2017-12-28 18:45:00.638 ERROR 2804 --- [nio-8443-exec-2] org.thymeleaf.TemplateEngine:[THYMELEAF] [https-jsse-nio-8... -
1 votes1 answers1547 views
通过构造函数参数0表示的不满意的依赖性;嵌套异常是org.springframework.beans.factory.NoSuchBeanDefinitionException
尝试使用异常消息导航到“客户”时出现异常 '创建名为'com.nfg.crm.ui.views.customers.CustomersView'的bean时出错:通过构造函数参数0表示不满意的依赖关系;嵌套异常是org.springframework.beans.factory.NoSuchBeanDefinitionException:没有'com.nfg.crm.ui.crud.CrudEn... -
44 votes6 answers1015 views
在Spring Boot中以编程方式配置DataSource
使用Spring Boot,我可以使用以下内容实例化 JdbcTemplate : 码: @Autowired private JdbcTemplate jdbcTemplate; 属性: spring.datasource.url=jdbc:postgresql://my_url:my_port/my_other_stuff spring.datasource.username=my_user... -
1 votes2 answers80 views
Spring启动多个数据源
我在1.5.1版本中使用spring boot的应用程序有问题 . 我的应用程序需要与2个数据库(Oracle和MySQL)进行通信 我的应用程序使用2个数据源: - MySQL数据源 @Configuration public class OracleDBConfig { @Bean(name = "oracleDb") @ConfigurationPro... -
4 votes0 answers1278 views
Spring Social认证过滤器无法正常工作,我该怎么调试呢?
我遇到了Spring SocialAuthenticationFilter的问题,我发现它已经加载到过滤器链中但是当我访问“/ auth / facebook?code = ...”时,它不会处理该输入 . 这是我的WebSecurityConfig的配置方法: @Override protected void configure(HttpSecurity http) throws Excepti... -
7 votes1 answers484 views
Spring Boot OAuth2 - 无法从令牌获取用户详细信息
我在网上搜索了这个问题的解决方案,但没有找到任何可行的解决方案 . 我正在尝试设置基本的Spring Boot OAuth2授权提供程序和客户端 . 我遵循官方的Spring Boot说明,并在Facebook和Github上创建了单点登录 . 然后我按照说明创建了Secure Spring Boot Web应用程序 . 我想创建自己的授权服务器,所以我将@EnableAuthorizationS... -
0 votes3 answers515 views
在apache tomcat上部署war文件时不加载CSS和JS文件
我正在使用spring-boot-starter-web-mvc进行初始开发 . 当我在服务器上部署war文件时,它不会加载css和js文件,但是当我使用spring boot运行相同的代码时,它运行正常 . 下面是加载js和css文件的目录结构和配置 . 任何人都可以让我知道如何解决问题?仅使用基于java的项目配置 . 在部署项目之前,我在doc中引用了8.1.1,并使用了与下面相同的pom文...