- 博客(20)
- 资源 (1)
- 收藏
- 关注
原创 Excel
/** * 自定义导出Excel数据注解 * */@Retention(RetentionPolicy.RUNTIME)@Target(ElementType.FIELD)public @interface Excel{ /** * 导出到Excel中的名字. */ String name() default ""; /** *...
2020-03-28 15:14:53
630
原创 SwaggerConfig
SwaggerConfig@Configuration@EnableSwagger2public class SwaggerConfig { /** * 创建API */ @Bean public Docket createRestApi() { return new Docket(DocumentationType.SWAGGE...
2020-03-28 13:48:26
4380
原创 RedisCache redis工具类
public class RedisCache { @Autowired public RedisTemplate redisTemplate; /** * 缓存的基本对象。Integer String 实体类 * * @param key 缓存的键值 * @param value 缓存的值 * @param <...
2020-03-27 10:13:14
4802
1
转载 spring-data-redis ValueOperations
/** *设置 key 的值为 value *如果key不存在添加key 保存值为value *如果key存在则对value进行覆盖 */ void set(K key, V value); /** * 设置 key 的值为 value * 其它规则与 set(K key, V value)一样 * @para...
2020-03-27 10:09:21
240
原创 Windchill 中常用命令
1.在windchill shell中输入windchill version,用来查看windchill的版本2. xconfmanager -s name=value -t 目标文件 -p 用来在xconf和properties文件中增加条目,例如xconfmanager -s wt.servlet.ajp.minPort=8010 codebase/wt.properties 。其中...
2020-03-07 15:52:36
1488
原创 Windchill 的定制化类
1.如何在系统中查找对象对应的类打开站点中的"类型和属性管理器",选择部件,这个部件就对应了系统中的一个对象,wt.part.WTPart就是系统中部件对应的类,wt.part是包名,WTPart就是类的名称2.系统类的设计系统中的服务类设计为xxHelper.java文件和xxService.java是组合关系,系统中的所有业务对象对应的方法在对应的service中,通过xxHelp...
2020-03-07 15:46:24
831
1
原创 IDEA常用的基本设置
合适的字体大小打开File——Settings编辑区的设置控制台的设置按住ctrl+滚轮进行放大缩小设置编码jdk设置autoscroll点击齿轮auto import
2020-03-07 15:18:10
211
原创 Info*Engine Task
JSP页面<%@page language="java"%><%@page contentType="text/html; charset=UTF-8"%><%@taglib uri="http://www.ptc.com/infoengine/taglib/core" prefix="ie"%><ie:webject name="Query-O...
2020-03-05 21:47:42
554
原创 工作流,生命周期导入
工作流导入命令windchill wt.load.LoadFromFile -d loadFiles/ext/workflow/xxx.xml -Unattended -NoServerStop -u wcadmin -p wcadmin生命周期导入命令:windchill wt.load.LoadFromFile -d loadFiles/ext/lifecycle/xxx.xml...
2020-03-05 17:46:10
261
原创 Windchill标准属性定制
背景先了解全局属性(IBA)的原理,各种类型的定义对应定义表(如StringDefinition,IntegerDefinition),每个属性的具体值,对应该类型的数据库表行,如StringValue,IntegerValue。属性值对象中一列为属性定义对象的外键(ida3a6),一列为关联对象的外键(ida3a4),对象与属性之间,通过多表关联。优缺陷:优点:1、 使用方便,通过页面类...
2020-03-05 17:32:12
1176
原创 Windchill配置Method远程调试端口
在site.xconf中加入如下条目:<Property name="wt.manager.cmd.MethodServer.debug.args" overridable="true" targetFile="codebase/wt.properties" value="-Xnoagent -Xdebug -Xrunjdwp:transport=dt_socket,address=999...
2020-03-05 16:15:40
811
原创 打包codebase 下class和properties文件
step1:安装并在系统环境中配置WinRAR配置好后在控制台输入Rarstep2:打包class文件将codebase下所有的class文件和properties文件(包含子目录)进行打包压缩,最后解压缩到同一目录下,使用jar命令打成jar包,命令如下:cd codebaseRar a -r codebase1.rar -ms *.classStep3:压缩properties文件...
2020-03-05 16:12:03
262
原创 WindChill build.xml
<?xml version="1.0" encoding="utf-8"?><project name="custom" basedir="." default="all"> <description>Customization Build</description> <property environment="env" />...
2020-03-05 15:06:31
494
原创 WindChill IBA属性
package ext.common.util;import java.sql.Timestamp;import java.text.ParseException;import java.util.Collection;import java.util.HashMap;import java.util.Iterator;import java.util.Locale;import ...
2020-02-25 13:27:09
1650
原创 WindChill BOM结构相关
public class BomUtil { /** * @param parentPart * @return * @throws WTException * @description 取第一层子部件对象 */ public static ArrayList<WTPart> getAllChildrenParts(WTPart parentPart) thr...
2020-02-25 13:25:58
1161
5
原创 WindChill ext 对象初始化规则
OOTB的对象初始化规则可以对数据类型,目标文件夹,生命周期模板,编号规则进行定义<!DOCTYPE OrganizationConfig SYSTEM "standardX10.dtd"><OrganizationConfig> <TypeBasedRule> <EngineRule isDefault="false" e...
2020-02-25 13:07:58
940
原创 WindChill ext 过滤器
public class AdminFilter extends DefaultSimpleValidationFilter { @SuppressWarnings("unused") public UIValidationStatus preValidateAction(UIValidationKey key, UIValidationCriteria criteria) { UIVa...
2020-02-25 12:50:58
471
原创 java开发环境
常用的DOS命令Window+r,cmd 进入DOS窗口,默认实在c盘下,可以切换盘符。e: 切换盘符,进入e盘dir 列出当前目录下的目录和文件cd xxx 进入xxx目录cd . 访问当前目录cd … 退到上层目录cd / 退到根目录exit 退出dos窗口cls 清屏下载安装http://www.oracle.comJAVA_HOME ...
2019-11-22 12:02:31
99
原创 spring boot 多数据源
springboot 项目中多数据源的配置yml配置文件上进行多数据源的配置#spring datasourcespring: datasource: type: com.alibaba.druid.pool.DruidDataSource url: jdbc:mysql:///jtsys?serverTimezone=GMT%2B8&characterEncod...
2019-11-04 14:33:11
207
1
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人