SpringBoot
@yang@yang
IT行业,目前java开发
展开
-
SpringData Rest报错 org.hibernate.AnnotationException: No identifier specified for entity
报错:Invocation of init method failed; nested exception is org.hibernate.AnnotationException: No identifier specified for entity: com.springdatarest.rest.pojp.Yuseradmn原因:实体类的@Id import错了,应该是import javax.persistence.Id;...原创 2022-01-06 16:29:53 · 513 阅读 · 0 评论 -
SpringBoot创建多数据源报错:No supported DataSource type found
创建多数据源配置:使用SpringBoot创建多数据源的时候启动报错:No supported DataSource type foundCaused by: java.lang.IllegalStateException: No supported DataSource type found at org.springframework.util.Assert.state(Assert.java:76) ~[spring-core-5.3.14.jar:5.3.14] at org.spri原创 2022-01-06 14:30:05 · 1826 阅读 · 0 评论 -
java.lang.IllegalArgumentException: jdbcUrl is required with driverClassName
SpringBoot配置多数据源启动报错:java.lang.IllegalArgumentException: jdbcUrl is required with driverClassName解决方法:配置修改 spring.datasource.url -->spring.datasource.jdbc-url原因:spring.datasource.url 数据库的 JDBC URL。spring.datasource.jdbc-url 用来重写自定义连接池...原创 2022-01-06 14:23:39 · 1294 阅读 · 1 评论 -
Caused by: io.jsonwebtoken.security.WeakKeyException: The specified key byte array is 40 bits which
项目:一、说明:SpringBoot整合SpringSecurity实现JWT认证,选用了SignatureAlgorithm.HS512算法,在用使用base64-secret作为私钥JWT进行签名的时候报错:org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServ原创 2021-01-04 15:49:53 · 4671 阅读 · 0 评论