![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring Boot
闲言博客
记录成长,记录学习!
展开
-
SpringBoot整合Apache Shiro 重定向时去掉URL中的JSESSIONID--重写getSessionId方式
SpringBoot整合Apache Shiro 重定向时去掉URL中的JSESSIONID--重写getSessionId方式原创 2022-07-01 22:26:57 · 873 阅读 · 1 评论 -
No SecurityManager accessible to the calling code, either bound to the org.apache.shiro.util.ThreadC
org.apache.shiro.UnavailableSecurityManagerException: No SecurityManager accessible to the calling code, either bound to the org.apache.shiro.util.ThreadContext or as a vm static singleton. This is an invalid application configuration.原创 2022-07-01 19:21:55 · 4940 阅读 · 0 评论 -
No converter found for return value of type: class
No converter found for return value of type: class原创 2022-07-01 18:01:50 · 299 阅读 · 0 评论 -
Error creating bean with name ‘stringRedisTemplate‘ defined in class path re
Caused by: java.lang.ClassNotFoundException: org.apache.commons.pool2.impl.GenericObjectPoolConfig at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[na:1.8.0_101] at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_101] at转载 2022-06-29 22:35:51 · 593 阅读 · 0 评论 -
You must configure either the server or JDBC driver (via the ‘serverTimezone‘ configuration property
java.sql.SQLException: The server time zone value '�й���ʱ��' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the 'serverTimezone' configuration property) to use a more specifc time原创 2022-06-28 09:01:29 · 582 阅读 · 0 评论 -
When allowCredentials is true, allowedOrigins cannot contain the special value “*“ since that canno
Caused by: java.lang.IllegalArgumentException: When allowCredentials is true, allowedOrigins cannot contain the special value "*" since that cannot be set on the "Access-Control-Allow-Origin" response header. To allow credentials to a set of origins, li转载 2022-04-19 20:38:36 · 1997 阅读 · 3 评论 -
Identify and stop the process that‘s listening on port 8080 or configure this application to listen
Identify and stop the process that‘s listening on port 8080 or configure this application to listen原创 2022-01-05 20:49:32 · 680 阅读 · 2 评论 -
【狂神说Java】SpringBoot最新教程IDEA版通俗易懂
Spring Boot是由Pivotal团队提供的全新框架,其设计目的是用来简化新Spring应用的初始搭建以及开发过程。该框架使用了特定的方式来进行配置,从而使开发人员不再需要定义样板化的配置。通过这种方式,Spring Boot致力于在蓬勃发展的快速应用开发领域(rapid application development)成为领导者。原创 2022-01-01 14:24:15 · 6081 阅读 · 6 评论 -
SpringBoot 整合--Druid
Java程序很大一部分要操作数据库,为了提高性能操作数据库的时候,又不得不使用数据库连接池。Druid 是阿里巴巴开源平台上一个数据库连接池实现,结合了 C3P0、DBCP 等 DB 池的优点,同时加入了日志监控。Druid 可以很好的监控 DB 池连接和 SQL 的执行情况,天生就是针对监控而生的 DB 连接池。Druid已经在阿里巴巴部署了超过600个应用,经过一年多生产环境大规模部署的严苛考验。Spring Boot 2.0 以上默认使用 Hikari 数据源,可以说 Hikari 与原创 2021-12-31 20:24:19 · 399 阅读 · 0 评论 -
SpringBoot整合--Mybatis
1.导入依赖mybatis-spring-boot-starter 不是springboot官方的,自研的在这里插入代码片2.在启动类配置包扫描在这里插入代码片3.配置yml文件在这里插入代码片4.编写Mapper接口在这里插入代码片5.编写Mapper映射文件在这里插入代码片6.测试在这里插入代码片...原创 2021-12-31 15:27:08 · 789 阅读 · 0 评论 -
SpringBoot整合--JDCB(Mysql)
1.导入依赖<dependencies> <!--jdbc--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId> </dependency> <!--mysql 驱动-->原创 2021-12-30 18:22:19 · 884 阅读 · 0 评论 -
SpringBoot 自动装配原理
SpringBoot项目无需各种配置文件,一个main方法,就能把项目启动起来。那么我们看看SpringBoot是如何进行自动配置和启动的。SpringBoot通过main方法启动SpringApplication类的静态方法run()来启动项目。@SpringBootConfiguration:这个注解的底层是一个@Configuration注解,意思被@Configuration注解修饰的类是一个IOC容器,支持JavaConfig的方式来进行配置;@ComponentScan:这个就是扫描注解原创 2021-12-21 11:16:39 · 1396 阅读 · 7 评论 -
SpringBoot整合--Swagger2
1.导入依赖 <!--web依赖--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <!--springboot测试依赖--&g原创 2021-12-16 15:44:42 · 945 阅读 · 0 评论 -
java.sql.SQLException: The server time zone value ‘�й���ʱ��‘ is unrecognized or represents more tha
java.sql.SQLException: The server time zone value '�й���ʱ��' is unrecognized or represents more than one time zone转载 2021-11-13 16:58:23 · 141 阅读 · 0 评论 -
SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder“. SLF4J: Defaulting to no-operation (
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".SLF4J: Defaulting to no-operation (NOP) logger implementationSLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.转载 2021-11-13 14:38:50 · 1779 阅读 · 0 评论 -
org.springframework.data.redis.serializer.SerializationException: Cannot serialize; nested exception
org.springframework.data.redis.serializer.SerializationException: Cannot serialize; nested exception is org.springframework.core.serializer.support.SerializationFailedException: Failed to serialize object using DefaultSerializer; nested exception is java.l原创 2021-05-12 23:29:09 · 325 阅读 · 0 评论 -
Exception in thread “main“ redis.clients.jedis.exceptions.JedisDataException: ERR no such key
Exception in thread "main" redis.clients.jedis.exceptions.JedisDataException: ERR no such key原创 2021-05-12 23:26:09 · 1076 阅读 · 0 评论 -
Unable to infer base url. This is common when using dynamic servlet registration or when the API is
Unable to infer base url. This is common when using dynamic servlet registration or when the API is behind an API Gateway. The base url is the root of where all the swagger resources are served. For e.g. if the api is available at http://example.org/api/v2原创 2021-05-06 00:05:17 · 20142 阅读 · 4 评论 -
Caused by: com.mysql.cj.exceptions.InvalidConnectionAttributeException: The server time zone value ‘
Caused by: com.mysql.cj.exceptions.InvalidConnectionAttributeException: The server time zone value '�й���ʱ��' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration原创 2021-05-04 22:46:04 · 145 阅读 · 0 评论 -
SpringBoot 整合thymeleaf--跳转首页
SpringBoot 整合thymeleaf--跳转首页原创 2021-05-04 22:41:01 · 380 阅读 · 0 评论 -
2021-05-04 16:37:16.550 ERROR 3268 --- [nio-8080-exec-3] o.a.c.c.C.[.[.[/].[dispatcherServlet] :
2021-05-04 16:37:16.550 ERROR 3268 --- [nio-8080-exec-3] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] threw exceptionjava.lang.StackOverflowError: null原创 2021-05-04 22:05:06 · 15884 阅读 · 1 评论 -
使用SpringBoot自定义国际化时-出现的小问题
错误产生环境SpringBoot项目 自定义国际化时产生(前台thymeleaf模板引擎)错误描述java.lang.ArrayIndexOutOfBoundsException: 1 at cn.bloghut.config.MyLocalResolver.resolveLocale(MyLocalResolver.java:33) 错误原因前台点击语言(中文),发生请求从代码中看到,我前台的中文请求通过get 方式在url 地址后面携带参数 ,在拼接zh_CN 的时候太马虎 使用"原创 2021-05-04 21:56:55 · 249 阅读 · 0 评论 -
java.sql.SQLNonTransientConnectionException: Cannot load connection class because of underlying exce
java.sql.SQLNonTransientConnectionException: Cannot load connection class because of underlying exception: com.mysql.cj.exceptions.WrongArgumentException: Malformed database URL, failed to parse the main URL sections.Caused by: com.mysql.cj.exceptions.Una原创 2021-05-02 23:47:02 · 505 阅读 · 0 评论 -
javax.servlet.ServletException: Circular view path [index]: would dispatch back to the current handl
javax.servlet.ServletException: Circular view path [index]: would dispatch back to the current handler URL [/index] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.) at org.sp原创 2021-05-02 20:57:10 · 1040 阅读 · 2 评论 -
Access to XMLHttpRequest at ‘http://localhost:8081/demo/test‘ from origin ‘null‘ has been blocked by
Access to XMLHttpRequest at 'http://localhost:8081/demo/test' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.localhost:8081/demo/test:1 Failed to load resource: net::ERR_FAIL原创 2021-05-02 18:41:33 · 4133 阅读 · 1 评论 -
java.lang.IllegalStateException: zookeeper not connected
java.lang.IllegalStateException: zookeeper not connectedCaused by: java.lang.IllegalStateException: zookeeper not connected at org.apache.dubbo.remoting.zookeeper.curator.CuratorZookeeperClient.<init>(CuratorZookeeperClient.java:80) ~[dubbo-2.7.5.jar:2.7.原创 2021-04-26 15:02:39 · 8585 阅读 · 5 评论 -
java.lang.IllegalStateException: zookeeper not connectedCaused by: java.lang.IllegalStateException:
Caused by: java.lang.IllegalStateException: zookeeper not connected at org.apache.dubbo.remoting.zookeeper.curator.CuratorZookeeperClient.<init>(CuratorZookeeperClient.java:80) ~[dubbo-2.7.5.jar:2.7.5] ... 30 common frames omitted原创 2021-04-24 20:03:37 · 701 阅读 · 0 评论 -
OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and
OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory原创 2021-04-19 20:14:59 · 2798 阅读 · 0 评论 -
Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.1.6.RELEASE:repackage (re
Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.1.6.RELEASE:repackage (repackage) on project CSDN: Execution repackage of goal org.springframework.boot:spring-boot-maven-plugin:2.1.6.RELEASE:repackage failed: Unable to rename 'xx原创 2021-04-18 20:05:30 · 701 阅读 · 1 评论 -
‘Authentication failed.‘ on server xx.xx.xxx.x:27017. The full response is { “ok“ : 0.0, “errmsg“
异常产生环境在SpringBoot项目中使用yml文件连接mongodb产生(mongodb带密码验证)异常描述com.mongodb.MongoCommandException: Command failed with error 18 (AuthenticationFailed): 'Authentication failed.' on server xx.xx.xx.xx:27017. The full response is { "ok" : 0.0, "errmsg" : "Authen转载 2021-03-05 22:36:20 · 4747 阅读 · 0 评论 -
java.sql.SQLException: The server time zone value ‘�й���ʱ��‘ is unrecognized or represents more tha
java.sql.SQLException: The server time zone value '�й���ʱ��' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value i转载 2021-02-24 21:33:19 · 4500 阅读 · 0 评论 -
Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource could
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could原创 2021-02-24 18:33:18 · 4130 阅读 · 0 评论