首页 » 2019年2月

linux下切换java8 和java11 ,首先更改.bashrc,将PATH变量保存到PATHX中

PATHX=$PATH

然后分别创建useJava8.sh

JAVA_HOME=/home/shenfeng/Tools/jdk1.8.0_201
M2_HOME=/home/shenfeng/Tools/apache-maven-3.6.0
PATH=$JAVA_HOME/bin:$M2_HOME/bin:$PATHX

useJava11.sh

JAVA_HOME=/home/shenfeng/Tools/jdk-11.0.2
M2_HOME=/home/shenfeng/Tools/apache-maven-3.6.0
PATH=$JAVA_HOME/bin:$M2_HOME/bin:$PATHX

创建别名

alias u8='source /home/shenfeng/Tools/javaEnv/useJava8.sh'
alias u11='source /home/shenfeng/Tools/javaEnv/useJava11.sh'

然后,

source .bashrc

可以用u8 和u11 切换了

放到live template---java里面,然后保存为gs,在idea中打出gs就出来了

$END$
private $Type$ $name$;

public void set$uname$($Type$ $name$) {
    this.$name$ = $name$;
}

public $Type$ get$uname$() {
    return this.$name$;
}

Commit cannot be completed since the group has already rebalanced and assigned the partitions to another member. This means that the time between subsequent calls to poll() was longer than the configured max.poll.interval.ms, which typically implies that the poll loop is spending too much time message processing. You can address this either by increasing the session timeout or by reducing the maximum size of batches returned in poll() with max.poll.records.

这个是因为kakfa一次poll的太多了,

spring:
  kafka:
    bootstrap-servers: ${kafka.host}
    consumer:
      group-id: tv.rr.bus
      enable-auto-commit: false
      max-poll-records: 350 # 改成50