终止java

  • taskkill /f /t /im javaw.exe

linux 环境变量

  • vim .bash_profile

export JAVA_HOME=~/11/jdk-15.0.1
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
  • source .bash_profile

idea

  • tomcat 虚拟机大小
-server -XX:PermSize=512M -XX:MaxPermSize=2024m

idea

  • theme shirotelin , Rider UI Theme Pack
  • 机器学习代码 codota
  • ideavim,ideaVim-Sneak,ideaVimExtension
  • sublime-Snippets Support
  • Translation , chinese (Simplified)
  • Easy Javadoc

maven pom.xml lib分开打包

 <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <configuration>
                    <archive>
                        <manifest>
                            <addClasspath>true</addClasspath>
                            <classpathPrefix>lib/</classpathPrefix>
                            <!--此处修改为你的应用入口类全路径-->
                            <mainClass>com.hikvision.hikvision.HikvisionApplication</mainClass>
                        </manifest>
                    </archive>
                </configuration>
            </plugin>
            <plugin>
                <!--这个插件就是把依赖的jar包复制出来放到编译后的target/lib目录,并且在打包时候排除内部依赖-->
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <executions>
                    <execution>
                        <id>copy-dependencies</id>
                        <phase>prepare-package</phase>
                        <goals>
                            <goal>copy-dependencies</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>${project.build.directory}/lib</outputDirectory>
                            <overWriteReleases>false</overWriteReleases>
                            <overWriteSnapshots>false</overWriteSnapshots>
                            <overWriteIfNewer>true</overWriteIfNewer>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

        </plugins>
    </build>

tomcat 重启session

-- 修改content.xml
<Manager className="org.apache.catalina.session.PersistentManager" >
        debug=0
        saveOnRestart="true"
        maxActiveSession="-1"
        minIdleSwap="-1"
        maxIdleSwap="-1"
        maxIdleBackup="-1"
        <Store className="org.apache.catalina.session.FileStore" directory="../session" />
        </Manager>

mvn idea下sb了

mvn idea:idea
posted on 2020-12-22 13:43  零度91  阅读(90)  评论(0编辑  收藏  举报