随笔分类 - java
java
摘要:Componentpublic class SpringContextUtils implements ApplicationContextAware { public static ApplicationContext applicationContext; @Override public vo
阅读全文
摘要:原因module 里面缺少iml文件 生成iml文件方法二:(建议):刷新一下Maven Project就会自动生成.iml文件。点击下图红框标记的按钮即可 完成后就会自动生成.iml文件。 方法二:在缺少.iml文件项目下运行mvn idea:module,完成后将自动生成.iml文件 来源 ID
阅读全文
摘要:***************************APPLICATION FAILED TO START*************************** Description: An attempt was made to call a method that does not exis
阅读全文
摘要:1、使用elastic-job进行任务调度,而核心的就是使用zookeeper进行管理,但这个与spring cloud 冲突造成启动不了 |ERROR |main |SpringApplication.java:826 |org.springframework.boot.SpringApplica
阅读全文
摘要:DENIED Redis is running in protected mode because protected mode is enabled redisson连接错误 Unable to init enough connections amount Only 23 from 32 were
阅读全文
摘要:zookeeper 安装集群,配置文件和data和其它都没有问题。 则需要在data里面下添加一个myid 文件 myid里面的数据个service一致 比如.cnf里面配置是 dataDir=/usr/local/src/zookeeper/apache-zookeeper-3.6.3-bin/d
阅读全文
摘要:RSA用私钥签名的时候发现报错,删除以下内容即可 BEGIN PRIVATE KEY END PRIVATE KEY import org.apache.commons.codec.binary.Base64; import javax.crypto.Cipher; import java.secu
阅读全文
摘要:properties使用PropertiesLoaderUtils,yml使用YamlPropertySourceLoader application.properties microsoft.definition.schema=https://websiate/.... microsoft.def
阅读全文
摘要:pom.xml文件配置 <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <
阅读全文
摘要:package com.aiyusheng.shopping.util; import java.lang.management.ManagementFactory; import java.net.InetAddress; import java.net.NetworkInterface; imp
阅读全文
摘要:vim /etc/nginx/nginx.conf log_format main '$remote_addr - $remote_user [$time_local] ' '"$request" $status $body_bytes_sent ' '"$http_referer" "$http_
阅读全文
摘要:import org.apache.commons.lang3.reflect.FieldUtils;import org.elasticsearch.action.search.SearchResponse;import org.elasticsearch.common.document.Docu
阅读全文
摘要:package com.aiyusheng.framework.exception; import lombok.Data; /** * base异常类 * @author :cza * @date :2020/11/25 15:57 * @description : * @modyified By
阅读全文
摘要:1、在类上设置注释的模板 File-->settings-->Editor-->File and Code Templates-->Files 选择CLASS,如果没有选择File 下面的+ 进行添加 内容 #if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")
阅读全文
摘要:自定义的属性,用来判断顺序的 import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import jav
阅读全文
摘要:import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotati
阅读全文
摘要:***************************APPLICATION FAILED TO START*************************** Description: Method mvcConversionService in org.springframework.boot
阅读全文
摘要:Failed to resolve argument 1 of type 'java.util.List' org.springframework.web.bind.MissingServletRequestParameterException: Required List parameter 'c
阅读全文
摘要:server { listen 80; server_name api.xxxx.com; add_header Access-Control-Allow-Origin '*' ; proxy_set_header X-Forwarded-Host $host; proxy_set_header X
阅读全文
摘要:要安装 vue-devtools-4.1.4_0 链接: https://pan.baidu.com/s/1aeUxKJEUDW0U_i6uuAZFvQ 提取码: 4btc vue-devtools-4.1.4_0复制一份,然后修改后缀变成vue-devtools-4.1.4_0.rar 解压vue
阅读全文
浙公网安备 33010602011771号