摘要: 项目启动失败提示 Error running 'Application' Error running Application. Command line is too long. Shorten the command line via JAR manifest or via a classpath 阅读全文
posted @ 2024-12-09 11:26 钟音城 阅读(7351) 评论(0) 推荐(2)
摘要: es 毛刺问题 在写入时,边写边查并不会出现明显毛刺,但在写入时不查询,写入完成后再查询会出现明显毛刺。下图的三个毛刺是在是用反转索引时,写入完成后切换索引时出现。 通过 remove 和 add 别名可以无感切换索引 /_aliases { "actions": [ { "add": { "ind 阅读全文
posted @ 2024-09-23 17:55 钟音城 阅读(41) 评论(0) 推荐(0)
摘要: 为了保证JWT随机生成的密钥一致,我设计了一个token服务,专门获取JWT,和生成token。在网关使用client调用服务时,出现了bean循环依赖 The dependencies of some of the beans in the application context form a c 阅读全文
posted @ 2024-03-15 12:37 钟音城 阅读(778) 评论(0) 推荐(0)
摘要: 试了很多方法,第一次把连接时间加长之后连接上了connectTimeout=30000&socketTimeout=30000 ,但重启后又再次报错,现在在连接mysql的url上加上allowPublicKeyRetrieval=true成功连接 阅读全文
posted @ 2023-11-18 13:31 钟音城 阅读(243) 评论(0) 推荐(0)
摘要: ###SecurityConfig @Configuration @EnableWebSecurity public class SecurityConfig implements WebMvcConfigurer { @Bean public SecurityFilterChain filterC 阅读全文
posted @ 2023-04-11 16:38 钟音城 阅读(28) 评论(0) 推荐(0)
摘要: ##解决方法 ###在数据库连接配置db.properties文件中的属性前增加前缀 xml配置 <bean id="dataSource" class="com.alibaba.druid.pool.DruidDataSource"> <property name="username" value 阅读全文
posted @ 2023-04-02 16:01 钟音城 阅读(59) 评论(0) 推荐(0)
摘要: <build> <resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.properties</include> <include>**/*.xml</include> </includ 阅读全文
posted @ 2023-03-29 17:29 钟音城 阅读(51) 评论(0) 推荐(0)
摘要: #tomcat配置时没有工件(artifacts)war选项 可能是maven配置文件porm.xml没配置好 在porm.xml文件中添加 <packaging>war</packaging> 后刷新maven再配置tomcat出现artifacts选项 阅读全文
posted @ 2023-03-18 15:18 钟音城 阅读(1322) 评论(0) 推荐(0)
摘要: 问题 在启动tomcat后跳转servlet 404报错 检查路径后确认没有错误,tomcat配置正确。 解决方法 对于新版本tomcat 需要把maven的依赖中的javax.servlet更换为jakarta.servlet 同时web.xml的版本也升级为新版 web.xml配置 <?xml 阅读全文
posted @ 2023-03-18 14:53 钟音城 阅读(180) 评论(0) 推荐(0)