| | |
| | | lx_file/upload/ |
| | | lucene/ |
| | | attachment/upload/*/ |
| | | !attachment/upload/template/ |
| | | attachment/file/*/ |
| | | !attachment/file/template/ |
| | | target/ |
| | | .classpath |
| | | .project |
| | |
| | | //åé误çä¿¡æ¯ä½ä¸ºåæ°ä¼ è¿å»ï¼ä¸å¹¶æ¾ç¤º
|
| | | be.setMessagePara("error", e.getMessage());
|
| | | throw be;
|
| | | } |
| | | }
|
| | | 64.æ°æ®å»ºæ¨¡è§å
|
| | | åæ®µæ¾ç¤ºåç§°ï¼4-6个åï¼ç²¾ç»ï¼æè¿°ææ¯å夿³¨ç±»åæå
|
| | | åæ®µç±»åï¼ç¨æ·éUserIdï¼å¤äººéUserIds,ç»ç»æºæéorgUuid,å¤ä¸ªéorgUuidsï¼ä¸è½éString, 主é®pkï¼å¼ç¨å¤é®è¡¨å段éuuid
|
| | | æ¯åç
§çï¼ä¸å®è¦å ä¸åç
§åï¼é«çº§åç
§ååæ°æ®åå
¸åï¼æ°æ®åå
¸è¦å ãxxxãæ¥åºå
|
| | | å¼ç¨å¤é®è¡¨ï¼ä¸å®è¦éï¼ä¸å¯¹åºçåæ®µç±»åä¸å®è¦æ¯UUID
|
| | | |
| | | |
| | |
| | | |
| | | </profiles> |
| | | <dependencies> |
| | | |
| | | <!--è¡¥ä¸æ¨¡å--> |
| | | <dependency> |
| | | <groupId>com.lx</groupId> |
| | | <artifactId>product-server-patch</artifactId> |
| | | </dependency> |
| | | <!--人äºç®¡ç--> |
| | | <dependency> |
| | | <groupId>com.lx</groupId> |
| | | <artifactId>product-server-hr</artifactId> |
| | | </dependency> |
| | | <!--设å¤ç®¡ç--> |
| | | <dependency> |
| | | <groupId>com.lx</groupId> |
| | |
| | | <dependency> |
| | | <groupId>com.lx</groupId> |
| | | <artifactId>product-server-mq</artifactId> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>com.lx</groupId> |
| | | <artifactId>product-server-hr</artifactId> |
| | | </dependency> |
| | | <!--é件管çãææ¡£ç®¡ç--> |
| | | <dependency> |
| | |
| | | </dependency> |
| | | |
| | | <!--项ç®ç®¡ç模å--> |
| | | <!-- <dependency>--> |
| | | <!-- <groupId>com.lx</groupId>--> |
| | | <!-- <artifactId>product-project-server-base</artifactId>--> |
| | | <!-- <version>1.0.0-SNAPSHOT</version>--> |
| | | <!-- </dependency>--> |
| | | <!-- <dependency>--> |
| | | <!-- <groupId>com.lx</groupId>--> |
| | | <!-- <artifactId>product-project-server-contract</artifactId>--> |
| | | <!-- <version>1.0.0-SNAPSHOT</version>--> |
| | | <!-- </dependency>--> |
| | | <dependency> |
| | | <groupId>com.lx</groupId> |
| | | <artifactId>product-server-customer</artifactId> |
| | |
| | | <groupId>org.spring</groupId> |
| | | <artifactId>spring-server-master</artifactId> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>com.sendgrid</groupId> |
| | | <artifactId>sendgrid-java</artifactId> |
| | |
| | | @SpringBootApplication(exclude = DataSourceAutoConfiguration.class, scanBasePackages = {"com.product", "org.spring.service.core"}) |
| | | public class Application extends SpringBootServletInitializer { |
| | | |
| | | @Override |
| | | protected SpringApplicationBuilder configure(SpringApplicationBuilder applicationBuilder) { |
| | | return applicationBuilder.sources(Application.class); |
| | | } |
| | | @Override |
| | | protected SpringApplicationBuilder configure(SpringApplicationBuilder applicationBuilder) { |
| | | return applicationBuilder.sources(Application.class); |
| | | } |
| | | |
| | | public static void main(String[] args) { |
| | | try { |
| | | SpringApplication.run(Application.class, args); |
| | | boolean cacheFlat = DataPoolCacheImpl.getInstance().cacheALLData(); |
| | | boolean codeFlat = DataPoolCacheImpl.getInstance().initCodeManager(); |
| | | RegistValidate.getInstance().registValidateParameter(); |
| | | boolean connFlat = DataSourceManager.getInstance().initClientConnectionPool(); |
| | | InitialLoad.runInitialization(); |
| | | PdfConcurrenceUtil.init(); |
| | | String rootPath = ResourceUtils.getURL("classpath:").getPath(); |
| | | Global.setPropertyValue("root.path", rootPath); |
| | | Global.setPropertyValue("jdk.home", System.getProperties().getProperty("java.home")); |
| | | SpringBeanUtil.getBean(CreateSignatureFile.class).analysisSignaturePatch(); |
| | | SpringMVCContextHolder.getSystemLogger().info("root.path:" + rootPath); |
| | | SpringMVCContextHolder.getSystemLogger().info("jdk.home:" + System.getProperties().getProperty("java.home")); |
| | | if (cacheFlat && codeFlat && connFlat) { |
| | | SpringMVCContextHolder.getSystemLogger().info("Successful System Startup ! "); |
| | | } else { |
| | | SpringMVCContextHolder.getSystemLogger().error("System startup failed, Please contact the administrator!"); |
| | | } |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | SpringMVCContextHolder.getSystemLogger().error("System startup failed:"+e.getMessage()); |
| | | SpringMVCContextHolder.getSystemLogger().error("System startup failed, Please contact the administrator!"); |
| | | } |
| | | } |
| | | public static void main(String[] args) { |
| | | try { |
| | | SpringApplication.run(Application.class, args); |
| | | boolean cacheFlat = DataPoolCacheImpl.getInstance().cacheALLData(); |
| | | boolean codeFlat = DataPoolCacheImpl.getInstance().initCodeManager(); |
| | | RegistValidate.getInstance().registValidateParameter(); |
| | | boolean connFlat = DataSourceManager.getInstance().initClientConnectionPool(); |
| | | InitialLoad.runInitialization(); |
| | | PdfConcurrenceUtil.init(); |
| | | String rootPath = ResourceUtils.getURL("classpath:").getPath(); |
| | | Global.setPropertyValue("root.path", rootPath); |
| | | Global.setPropertyValue("jdk.home", System.getProperties().getProperty("java.home")); |
| | | SpringBeanUtil.getBean(CreateSignatureFile.class).analysisSignaturePatch(); |
| | | SpringMVCContextHolder.getSystemLogger().info("root.path:" + rootPath); |
| | | SpringMVCContextHolder.getSystemLogger().info("jdk.home:" + System.getProperties().getProperty("java.home")); |
| | | if (cacheFlat && codeFlat && connFlat) { |
| | | SpringMVCContextHolder.getSystemLogger().info("Successful System Startup ! "); |
| | | } else { |
| | | SpringMVCContextHolder.getSystemLogger().error("System startup failed, Please contact the administrator!"); |
| | | } |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | SpringMVCContextHolder.getSystemLogger().error("System startup failed:" + e.getMessage()); |
| | | SpringMVCContextHolder.getSystemLogger().error("System startup failed, Please contact the administrator!"); |
| | | } |
| | | } |
| | | } |
| | |
| | | #======================================# |
| | | #=============\u7CFB\u7EDF\u53C2\u6570 \u76F8\u5173\u914D\u7F6E==============# |
| | | #======================================# |
| | | #\u4E0A\u4F20\u6587\u4EF6\u8DEF\u5F84,\u7EDD\u5BF9 |
| | | #\u5E73\u53F0\u7C7B\u578B device\u3001lift\u3001OA\u3001sei |
| | | system.platform.type=lift |
| | | #\u542F\u7528\u65E5\u5FD7\u6253\u5370 |
| | | logger.isEnable=true |
| | | #\u65E5\u5FD7\u6253\u5370\u6307\u5B9A\u63A5\u53E3\uFF0C*\u8868\u793A\u5168\u90E8\u6253\u5370\uFF0C\u7A7A\u8868\u793A\u5168\u90E8\u4E0D\u6253\u5370\uFF0C\u6307\u5B9A\u591A\u4E2A\u63A5\u53E3\u9017\u53F7\u5206\u9694 |
| | | logger.print.api=* |
| | | #\u662F\u5426\u7ACB\u5373\u6253\u5370\uFF0Cfalse\uFF1A\u63A5\u53E3\u6700\u540E\u4E00\u6B21\u6027\u6253\u5370 true\uFF1A\u8C03\u7528\u5373\u6253\u5370 |
| | | logger.print.isAtOnce=true |
| | | logger.print.isAtOnce=false |
| | | #\u662F\u5426\u542F\u7528\u767B\u5F55\u63A5\u53E3\u7528\u6237\u540D\u5BC6\u7801\u52A0\u5BC6 |
| | | login.ecc.isEnable=true |
| | | #\u662F\u5426\u542F\u7528\u63A5\u53E3\u7B7E\u540D\u8BA4\u8BC1 |
| | | signature.isEnable=true |
| | | #\u5728\u542F\u7528\u63A5\u53E3\u7B7E\u540D\u8BA4\u8BC1\u65F6\uFF0C\u6392\u9664\u6307\u5B9A\u63A5\u53E3\u65E0\u9700\u7B7E\u540D\u8BA4\u8BC1 |
| | | signature.exclude.path=/api/rsa/getKey/v1,/api/token/refresh/v1,/api/mobile/network/check/v1,/api/system/config/info/v1,/api/fileManager/get-static-file,/static/** |
| | | signature.exclude.path=/api/mobile/system/table/list-meta/v1,/api/rsa/getKey/v1,/api/token/refresh/v1,/api/mobile/network/check/v1,/api/system/config/info/v1,/static/**,/api/system-user/avatar/v1/*,/api/office/save-office/v1,/download-mobile-apk/v1 |
| | | #\u7B7E\u540D\u8BA4\u8BC1Key |
| | | signature.key=299cb5bb4c9040a29c58304c25001d72 |
| | | #\u63A5\u53E3\u7B7E\u540D\u8BA4\u8BC1\u6709\u6548\u671F\uFF0C\u5355\u4F4D\u79D2,0\u8868\u793A\u4E0D\u9A8C\u8BC1 |
| | | signature.expire=0 |
| | | #token\u8FC7\u671F\u65F6\u95F4\uFF0C\u5C0F\u65F6 6\u5206\u949F |
| | | #token\u8FC7\u671F\u65F6\u95F4\uFF0C\u5355\u4F4D:\u5C0F\u65F6 6\u5206\u949F |
| | | token.expiration=1000 |
| | | #\u5FD8\u8BB0\u5BC6\u7801\u90AE\u4EF6\u4E2DToken\u7684\u8FC7\u671F\u65F6\u95F4 |
| | | mail.token.expiration=1 |
| | | #\u63A5\u53E3token\u8FC7\u671F\uFF0C\u5237\u65B0token\u7684\u63A5\u53E3\u4F7F\u7528\u7684Token\u8FC7\u671F\u65F6\u95F4 |
| | | refresh.token.expiration=12 |
| | | #token\u9A8C\u8BC1\u3001\u767B\u5F55\u9A8C\u8BC1\uFF0C\u6392\u9664URL,\u9017\u53F7\u5206\u9694 |
| | | token.exclude.path=/api/token/refresh/v1,/login,/login/v1,/api/personalcenter/send-updatePwdEmail/v1,/api/language/login-language/v1,/api/lable_internationalization/list_lable_internation/v1,/api/lable_internationalization/list-label-internation-web/v1,/api/personalcenter/check-token/v1,/api/rsa/getKey/v1,/api/mobile/network/check/v1,/api/system/config/info/v1,/api/fileManager/get-static-file,/static/** |
| | | token.exclude.path=/api/mobile/system/table/list-meta/v1,/api/token/refresh/v1,/login,/login/v1,/api/personalcenter/send-updatePwdEmail/v1,/api/language/login-language/v1,/api/lable_internationalization/list_lable_internation/v1,/api/lable_internationalization/list-label-internation-web/v1,/api/personalcenter/check-token/v1,/api/rsa/getKey/v1,/api/mobile/network/check/v1,/api/system/config/info/v1,/api/fileManager/get-static-file,/static/**,/download-mobile-apk/v1 |
| | | #\u662F\u5426\u542F\u7528\u6570\u636E\u64CD\u4F5C\u6743\u9650\u9A8C\u8BC1! |
| | | data.handle.valid.isEnable=false |
| | | #\u662F\u5426\u542F\u7528\u529F\u80FD\u6743\u9650\u9A8C\u8BC1 |
| | | url.valid.isEnable=false |
| | | #\u4E0D\u9700\u8981\u6743\u9650\u9A8C\u8BC1\u63A5\u53E3\u5730\u5740,\u4E0D\u80FD\u914D/v1\u3001v2\u7B49 |
| | | url.valid.pass=/api/prompt/business/findPrompt,/api/dictionary/list-dictionary-byname,/logout,/api/functions/onload-button,/api/language/login-language/v1,/api/fileManager/get-file-info,/api/language/list-international-fields,/api/user/language/update-language,/api/staff-manager/upload_staff_avatar,api/rsa/getKey,/api/mobile/network/check,/api/system/config/info,/api/fileManager/get-static-file,/static/** |
| | | url.valid.pass=/api/prompt/business/findPrompt,/api/dictionary/list-dictionary-byname,/logout,/api/functions/onload-button,/api/language/login-language/v1,/api/fileManager/get-file-info,/api/language/list-international-fields,/api/user/language/update-language,/api/staff-manager/upload_staff_avatar,api/rsa/getKey,/api/mobile/network/check,/api/system/config/info,/api/fileManager/get-static-file,/static/**,/download-mobile-apk |
| | | #\u662F\u5426\u6253\u5370\u9519\u8BEF\u4FE1\u606F |
| | | info.print=true |
| | | error.info.print=true |
| | |
| | | data.source.type=mysql |
| | | data.source.driver=com.mysql.jdbc.Driver |
| | | #################local############################### |
| | | data.source.url=jdbc:mysql://192.168.0.200:3308/product_db_v3.0.0?autoReconnect=true&useUnicode=true&characterEncoding=utf8&useNewIO=true&useSSL=false&serverTimezone=Asia/Shanghai |
| | | data.source.url=jdbc:mysql://192.168.0.200:3308/product_db_xn?autoReconnect=true&useUnicode=true&characterEncoding=utf8&useNewIO=true&useSSL=false&serverTimezone=Asia/Shanghai |
| | | #data.source.url=jdbc:mysql://192.168.0.200:3308/product_db_v3.0.0?autoReconnect=true&useUnicode=true&characterEncoding=utf8&useNewIO=true&useSSL=false&serverTimezone=Asia/Shanghai |
| | | #data.source.url=jdbc:mysql://127.0.0.1:3306/product_db_v3.0.0?autoReconnect=true&useUnicode=true&characterEncoding=utf8&useNewIO=true&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true |
| | | #data.source.url=jdbc:mysql://222.209.28.250:3005/product_db_lift?autoReconnect=true&useUnicode=true&characterEncoding=utf8&useNewIO=true&useSSL=false&serverTimezone=Asia/Shanghai |
| | | data.source.user=root |
| | | data.source.password=root123 |
| | | ##################local############################### |
| | |
| | | # \u80FD\u591F\u8F6C\u6362\u7684\u683C\u5F0F |
| | | can.transfer.format=docx,doc,xlsx,xls,pptx,ppt,txt,wps,wpt,et,eet |
| | | # \u65E0\u9700\u8F6C\u6362\u80FD\u591F\u5728\u7EBF\u9884\u89C8\u7684\u683C\u5F0F |
| | | can.direct.view.online.format=jpg,png,bmp,ico,html,pdf#\u5728\u7EBF\u7F16\u8F91\u662F\u5426\u5F00\u542F |
| | | can.direct.view.online.format=jpg,png,bmp,ico,html,pdf |
| | | enable.online.edit=false |
| | | # \u80FD\u5728\u7EBF\u7F16\u8F91\u7684\u6587\u4EF6\u683C\u5F0F |
| | | can.web.online.edit=doc,docx,xls,xlsx,ppt,pptx,wps,cvs,wps,wpt,et,eet |
| | |
| | | mobile.mac.valid.isEnable=false |
| | | # \u8BC1\u4E66\u4F4D\u7F6E |
| | | sign.dir.path=D:/test/lx-server/sign |
| | | #\u542F\u7528\u7CFB\u7EDF\u96C6\u7FA4 |
| | | system.clusters.enable=false |
| | | #tomcate\u914D\u7F6E |
| | | server.tomcat.max-threads=200 |
| | | server.tomcat.max-connections=1000 |
| | | server.tomcat.max-http-header-size=1024KB |
| | | mobile.apk.version=3.0.0 |
| | | |
| | | |
| | |
| | | #\u662F\u5426\u542F\u7528\u63A5\u53E3\u7B7E\u540D\u8BA4\u8BC1 |
| | | signature.isEnable=true |
| | | #\u5728\u542F\u7528\u63A5\u53E3\u7B7E\u540D\u8BA4\u8BC1\u65F6\uFF0C\u6392\u9664\u6307\u5B9A\u63A5\u53E3\u65E0\u9700\u7B7E\u540D\u8BA4\u8BC1 |
| | | signature.exclude.path=/api/rsa/getKey/v1,/api/token/refresh/v1,/api/mobile/network/check/v1,/api/system/config/info/v1,/static/** |
| | | signature.exclude.path=/api/rsa/getKey/v1,/api/token/refresh/v1,/api/mobile/network/check/v1,/api/system/config/info/v1,/static/**,/api/system-user/avatar/v1/*,/api/office/save-office/v1 |
| | | #\u7B7E\u540D\u8BA4\u8BC1Key |
| | | signature.key=299cb5bb4c9040a29c58304c25001d72 |
| | | #\u63A5\u53E3\u7B7E\u540D\u8BA4\u8BC1\u6709\u6548\u671F\uFF0C\u5355\u4F4D\u79D2,0\u8868\u793A\u4E0D\u9A8C\u8BC1 |
| | |
| | | #\u63A5\u53E3token\u8FC7\u671F\uFF0C\u5237\u65B0token\u7684\u63A5\u53E3\u4F7F\u7528\u7684Token\u8FC7\u671F\u65F6\u95F4 |
| | | refresh.token.expiration=12 |
| | | #token\u9A8C\u8BC1\u3001\u767B\u5F55\u9A8C\u8BC1\uFF0C\u6392\fu9664URL,\u9017\u53F7\u5206\u9694 |
| | | token.exclude.path=/api/token/refresh/v1,/login,/login/v1,/api/personalcenter/send-updatePwdEmail/v1,/api/language/login-language/v1,/api/lable_internationalization/list_lable_internation/v1,/api/lable_internationalization/list-label-internation-web/v1,/api/personalcenter/check-token/v1,/api/rsa/getKey/v1,/api/mobile/network/check/v1,/api/system/config/info/v1,/static/** |
| | | token.exclude.path=/api/token/refresh/v1,/login,/login/v1,/api/personalcenter/send-updatePwdEmail/v1,/api/language/login-language/v1,/api/lable_internationalization/list_lable_internation/v1,/api/lable_internationalization/list-label-internation-web/v1,/api/personalcenter/check-token/v1,/api/rsa/getKey/v1,/api/mobile/network/check/v1,/api/system/config/info/v1,/api/fileManager/get-static-file,/static/** |
| | | #\u662F\u5426\u542F\u7528\u6570\u636E\u64CD\u4F5C\u6743\u9650\u9A8C\u8BC1! |
| | | data.handle.valid.isEnable=false |
| | | #\u662F\u5426\u542F\u7528\u529F\u80FD\u6743\u9650\u9A8C\u8BC1 |
| | | url.valid.isEnable=false |
| | | #\u4E0D\u9700\u8981\u6743\u9650\u9A8C\u8BC1\u63A5\u53E3\u5730\u5740,\u4E0D\u80FD\u914D/v1\u3001v2\u7B49 |
| | | url.valid.pass=/api/prompt/business/findPrompt,/api/dictionary/list-dictionary-byname,/logout,/api/functions/onload-button,/api/language/login-language/v1,/api/fileManager/get-file-info,/api/language/list-international-fields,/api/user/language/update-language,/api/staff-manager/upload_staff_avatar,api/rsa/getKey,/api/mobile/network/check,/api/system/config/info,/static/** |
| | | url.valid.pass=/api/prompt/business/findPrompt,/api/dictionary/list-dictionary-byname,/logout,/api/functions/onload-button,/api/language/login-language/v1,/api/fileManager/get-file-info,/api/language/list-international-fields,/api/user/language/update-language,/api/staff-manager/upload_staff_avatar,api/rsa/getKey,/api/mobile/network/check,/api/system/config/info,/api/fileManager/get-static-file,/static/** |
| | | #\u662F\u5426\u6253\u5370\u9519\u8BEF\u4FE1\u606F |
| | | info.print=true |
| | | error.info.print=true |
| | |
| | | # Redis\u670D\u52A1\u5668\u5730\u5740 ----------localhost-------------- |
| | | #spring.redis.host=192.168.0.199 |
| | | # Redis\u670D\u52A1\u5668\u914D\u7F6E |
| | | # spring.redis.host=192.168.0.199 |
| | | #spring.redis.host=192.168.0.200 |
| | | # \u5355\u673Aredis |
| | | spring.redis.host=127.0.0.1 |
| | | spring.redis.port=6379 |
| | | #\u96C6\u7FA4\u914D\u7F6E ==== |
| | | spring.redis.cluster.enable=false |
| | | spring.redis.cluster.nodes=10.199.9.25:6390,10.199.9.26:6390,10.199.9.27:6390 |
| | | #\u51FA\u73B0\u5F02\u5E38\u6700\u5927\u91CD\u8BD5\u6B21\u6570 \u9ED8\u8BA4\u503C=5 |
| | | spring.redis.cluster.max-attempts=5 |
| | | # \u8FD4\u56DE\u503C\u8D85\u65F6\u65F6\u95F4 \u4E3A\u7A7A\u9ED8\u8BA4\u503C= \u8FDE\u63A5\u8D85\u65F6\u65F6\u95F4 |
| | | spring.redis.cluster.so-timeout=60000 |
| | | #\u96C6\u7FA4\u914D\u7F6E |
| | | #redis \u901A\u7528\u914D\u7F6E |
| | | spring.redis.password= |
| | | spring.redis.database=13 |
| | | |
| | | #------------------------------------------------- |
| | | # \u8FDE\u63A5\u6C60\u6700\u5927\u8FDE\u63A5\u6570\uFF08\u4F7F\u7528\u8D1F\u503C\u8868\u793A\u6CA1\u6709\u9650\u5236\uFF09 |
| | | spring.redis.pool.max-active=200 |
| | |
| | | spring.redis.pool.max-idle=100 |
| | | # \u8FDE\u63A5\u8D85\u65F6\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09 |
| | | spring.redis.timeout=60000 |
| | | |