# zanilia **Repository Path**: jax_study/zanilia ## Basic Information - **Project Name**: zanilia - **Description**: 学习的杂七杂八-前后端学习资料。 其中一部分模型,字体文件因文件太大,无法上传。 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-09-04 - **Last Updated**: 2025-11-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Zanilia > 小赵同学 ```maven # 完全跳过Test 不编译不运行 mvn clean -Dmaven.skip.test=true package # 跳过运行,编译Test不运行 mvn clean -DskipTests=true package ``` ### IDEA运行错误处理 运行提示命令太长, 找到 Shorten command line,选择 JAR manifest,apply 然后 ok: ### 运行jar nohup java -Xms256m -Xmx512m -XX:PermSize=256m -XX:MaxPermSize=512m -Djava.security.egd=file:/dev/./urandom -jar user-0.0.1-SNAPSHOT.jar &> user.log & ### 安装本地jar mvn install:install-file -Dfile=E:\InteliJ_IDEA\zanilia\zanilia-test\lib\jacob.jar -DgroupId=com.jacob -DartifactId=jacob -Dversion=1.18 -Dpackaging=jar ### 指定lib资源启动 java -jar -Djava.ext.dirs=./lib xxx.jar ### 或者 java -jar -Dloader.path=./lib -server xxx.jar ### 指定类启动方式 > java -classpath ./:/libs/*:/xlib/* xxx.xxApplication ### Maven分离jar包 ```text org.springframework.cloud spring-cloud-dependencies ${spring.cloud.version} pom import ${project.artifactId} src/main/resources ** rebel.xml true src/main/java **/*.xml src/main/webapp org.apache.maven.plugins maven-surefire-plugin 2.18.1 true org.apache.maven.plugins maven-jar-plugin false true lib/ com.znl.cloud.CloudDemoApplication false org.springframework.boot spring-boot-maven-plugin nothing nothing org.apache.maven.plugins maven-dependency-plugin copy-lib package copy-dependencies ${project.build.directory}/lib false false compile ``` ### aop: 切面简单说明 -> //在@Aspect标识的类中可以自定义方法和变量,配置对应的pointcut(切入点)、advice(通知)和introdution(引入)。 //@Pointcut("@annotation(com.znl.annotation.ZnlAnnoation)") //@Pointcut("execution( * com.znl.db.*.*(..))") //@Pointcut("execution( * com.znl.db.*.*(..)) || execution( * com.znl.cache.*.*(..)) ") //@Around("@target(com.znl.db.*)") //@Around("@within(com.znl.db.*)") //@Pointcut同样需配置表达式匹配应用程序。 //execution 匹配方法执行连接点 //within 匹配指定类型内的方法执行 //this 匹配当前AOP代理对象类型的执行方法;注意是AOP代理对象的类型匹配,这样就可能包括引入接口也类型匹配 //target 匹配当前目标对象类型的执行方法;注意是目标对象的类型匹配,这样就不包括引入接口也类型匹配 //args 匹配当前执行的方法传入的参数为指定类型的执行方法 //@target 匹配当前目标对象类型的执行方法,其中目标对象持有指定的注解 //@args 匹配当前执行的方法传入的参数持有指定注解的执行 //@within 匹配所以持有指定注解类型内的方法 //@annotation 匹配当前执行方法持有指定注解的方法 > 权限框架 参考 >> [Shiro-Jwt博客](https://www.cnblogs.com/BRSblackshoot/p/15562270.html) >> >> [SA-TOKEN](https://sa-token.cc) ### 后记 > 勿急勿躁,稳步缓行 >> http://www.jaxliu.cn