![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
℉an公众号:独孤道人
这个作者很懒,什么都没留下…
展开
-
org.codehaus.plexus.component.repository.exception.ComponentLookupException 错误
org.codehaus.plexus.component.repository.exception.ComponentLookupException 错误java.lang.RuntimeException: org.codehaus.plexus.component.repository.exception.ComponentLookupException: com.google.inject.ProvisionException: Unable to provision, see the follo原创 2022-04-24 16:11:59 · 1873 阅读 · 0 评论 -
com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method add in the service
1,问题com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method add in the service com.cnki.service.CheckItemService. Tried 1 times of the providers [192.168.1.4:20887] (1/1) from the registry 127.0.0.1:2181 on the consumer 192.168.1.4 using the dubbo原创 2021-10-10 09:37:28 · 822 阅读 · 0 评论 -
org.springframework.boot.context.properties.ConfigurationBeanFactoryMetadata
1,报错原因 springboot 版本和springcloud 版本不一致2,环境 springboot 版本 2.5.4 原来的springcloud 版本 Hoxton.SR12 替换springcloud 版本为2020.0.33,错误2021-09-16 09:50:15.851 WARN 916 --- [ main] s.c.a.AnnotationConfigApplicationContext : Exception encountered du原创 2021-09-16 10:11:28 · 14035 阅读 · 4 评论 -
rabbmitmq 实战
1,简单队列一个生产者对应一个消费者。1、生产者Connection connection= ConnectionUtil.getConnection("127.0.10.1", 5672,"/","admin_p","123"); Channel channel =connection.createChannel(); channel.queueDeclare(QUERY_NAME, false, false, false, n原创 2021-04-25 15:41:55 · 198 阅读 · 0 评论 -
springboot整合jpa以及druid
1、关于druidDRUID是阿里巴巴开源平台上一个数据库连接池实现,它结合了C3P0、DBCP、PROXOOL等DB池的优点,同时加入了日志监控,可以很好的监控DB池连接和SQL的执行情况,可以说是针对监控而生的DB连接池(据说是目前最好的连接池)2、添加druid、jpa依赖 <dependency> <groupId>com.alibaba</groupId> <artifactId>druid&原创 2021-04-16 10:56:01 · 976 阅读 · 0 评论 -
java.lang.NoClassDefFoundError: org/apache/log4j/Logger
springboot问题2021-04-15 14:46:47.935 INFO 30168 --- [ main] com.demo.jpa.demojpa.DemoJpaApplication : Starting DemoJpaApplication on DESKTOP-93HL1NN with PID 30168 (D:\java\demo-jpa\target\classes started by fyb in D:\java\demo-jpa)2021-04-15原创 2021-04-15 14:51:32 · 2425 阅读 · 0 评论 -
org.apache.catalina.LifecycleException: Failed to start component [NonLoginAuthenticator[StandardEng
1,记录一下spring cloud 神奇的报错错误信息"C:\Program Files\Java\jdk1.8.0_181\bin\java.exe" -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.app原创 2021-04-07 14:07:21 · 1191 阅读 · 2 评论 -
java spark读取es数据出现 java.lang.NoSuchFieldException:DEFAULT_TINY_CACHE_SIZE错误
1,环境 <spark.version>2.3.4</spark.version> <dependency> <groupId>org.apache.spark</groupId> <artifactId>spark-core_2.11</artifactId> <version>${spark.version}</versio原创 2021-01-06 09:35:27 · 6872 阅读 · 5 评论 -
java hanlp 情感分析实现
1,java 训练model//数据取自mysql public void TrainHanlpModel(Map<String, String[]> map) throws IOException { IClassifier classifier = new NaiveBayesClassifier(); classifier.train(map); NaiveBayesModel model = (NaiveBayesModel) clas原创 2020-09-11 13:23:22 · 2064 阅读 · 0 评论 -
spring boot 普通类注入service
1,applicationcontextaware 作用在java web项目中,有时候我们需要将普通类注入到service 中 会用到以下的代码ApplicationContext appContext = new ClassPathXmlApplicationContext("applicationContext-common.xml"); AbcService abcService = (AbcService)appContext.getBean("abcService"); 这步原创 2020-09-03 11:19:10 · 1179 阅读 · 0 评论 -
No serializer found for class org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor and no propert
java springboot jpa 查询数据报错No serializer found for class org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) (through referenc原创 2020-08-20 11:45:00 · 523 阅读 · 0 评论