From 17c2ca350fd909d1c343cee0530811e312259a67 Mon Sep 17 00:00:00 2001 From: wulinghui <873406903@qq.com> Date: Tue, 2 Jun 2020 18:01:28 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=BA=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F?= =?UTF-8?q?=E5=8F=96=E6=9C=8D=E5=8A=A1=E5=99=A8=E5=9C=B0=E5=9D=80=E5=92=8C?= =?UTF-8?q?=E5=AF=86=E7=A0=81.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 73 ++-- .../config/jsite-framework.properties | 4 +- jsite-web/nohup.out | 334 ++++++++++++++++++ jsite-web/pom.xml | 1 - .../src/main/resources/application.properties | 20 +- pom.xml | 1 - run.sh | 12 + shutdown.sh | 10 + 8 files changed, 418 insertions(+), 37 deletions(-) create mode 100644 jsite-web/nohup.out create mode 100644 run.sh create mode 100644 shutdown.sh diff --git a/.gitignore b/.gitignore index eb86a03a..95116bd1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,27 +1,54 @@ -/target/ -!.mvn/wrapper/maven-wrapper.jar -/log/ -### STS ### -.apt_generated +.gradle +/build/ + +# Ignore Gradle GUI config +gradle-app.setting + +# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored) +!gradle-wrapper.jar + +# Cache of project +.gradletasknamecache + +# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898 +# gradle/wrapper/gradle-wrapper.properties + +*.class +.metadata +RemoteSystemsTempFiles +.gradle +.settings +bin +build .classpath -.factorypath .project -.settings -.springBeans -.sts4-cache -/jsite-form/ -/jsite-form/target/ -/jsite-framework/target -### IntelliJ IDEA ### -.idea -*.iws + +# maven +target +/target/ +pom.xml.tag +pom.xml.releaseBackup +pom.xml.versionsBackup +pom.xml.next +release.properties +dependency-reduced-pom.xml +buildNumber.properties +.mvn/timing.properties + +# idea *.iml -*.ipr +.idea -### NetBeans ### -/nbproject/private/ -/build/ -/nbbuild/ -/dist/ -/nbdist/ -/.nb-gradle/ \ No newline at end of file + +# spring-boot-log +*.gz +*.tmp +*.log +*.log.lck +*.log.* + +# +# pd +*.pdb +# mybatis-generator.xml +*.db \ No newline at end of file diff --git a/jsite-framework/src/main/resources/config/jsite-framework.properties b/jsite-framework/src/main/resources/config/jsite-framework.properties index 715b7ec5..f9236cbc 100644 --- a/jsite-framework/src/main/resources/config/jsite-framework.properties +++ b/jsite-framework/src/main/resources/config/jsite-framework.properties @@ -1,10 +1,10 @@ #redis settings -redis.host=127.0.0.1 +redis.host=${server_ip:127.0.0.1} redis.port=6379 redis.password= #redis idGenerator -redis.slave1.host=127.0.0.1 +redis.slave1.host=${server_ip:127.0.0.1} redis.slave1.password= redis.slave1.port=6379 diff --git a/jsite-web/nohup.out b/jsite-web/nohup.out new file mode 100644 index 00000000..5d23977c --- /dev/null +++ b/jsite-web/nohup.out @@ -0,0 +1,334 @@ +[INFO] Scanning for projects... +[INFO] +[INFO] -----------------------< cn.org.jsite:jsite-web >----------------------- +[INFO] Building JSite Web 0.6.0-SNAPSHOT +[INFO] --------------------------------[ war ]--------------------------------- +[WARNING] The POM for com.alibaba:druid:jar:1.1.21 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details +[INFO] +[INFO] --- exec-maven-plugin:1.6.0:java (default-cli) @ jsite-web --- +[WARNING] +java.lang.NoClassDefFoundError: javax/servlet/ServletOutputStream + at com.jsite.common.io.PropertiesUtils.initLogger (PropertiesUtils.java:206) + at com.jsite.common.io.PropertiesUtils. (PropertiesUtils.java:39) + at com.jsite.JSiteWebApplication.main (JSiteWebApplication.java:24) + at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke (Method.java:498) + at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:282) + at java.lang.Thread.run (Thread.java:748) +Caused by: java.lang.ClassNotFoundException: javax.servlet.ServletOutputStream + at java.net.URLClassLoader.findClass (URLClassLoader.java:382) + at java.lang.ClassLoader.loadClass (ClassLoader.java:419) + at java.lang.ClassLoader.loadClass (ClassLoader.java:352) + at com.jsite.common.io.PropertiesUtils.initLogger (PropertiesUtils.java:206) + at com.jsite.common.io.PropertiesUtils. (PropertiesUtils.java:39) + at com.jsite.JSiteWebApplication.main (JSiteWebApplication.java:24) + at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke (Method.java:498) + at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:282) + at java.lang.Thread.run (Thread.java:748) +[INFO] ------------------------------------------------------------------------ +[INFO] BUILD FAILURE +[INFO] ------------------------------------------------------------------------ +[INFO] Total time: 2.893 s +[INFO] Finished at: 2020-06-02T17:11:32+08:00 +[INFO] ------------------------------------------------------------------------ +[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:java (default-cli) on project jsite-web: An exception occured while executing the Java class. javax/servlet/ServletOutputStream: javax.servlet.ServletOutputStream -> [Help 1] +[ERROR] +[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. +[ERROR] Re-run Maven using the -X switch to enable full debug logging. +[ERROR] +[ERROR] For more information about the errors and possible solutions, please read the following articles: +[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException +[INFO] Scanning for projects... +[INFO] +[INFO] -----------------------< cn.org.jsite:jsite-web >----------------------- +[INFO] Building JSite Web 0.6.0-SNAPSHOT +[INFO] --------------------------------[ war ]--------------------------------- +[WARNING] The POM for com.alibaba:druid:jar:1.1.21 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details +[INFO] +[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ jsite-web --- +[INFO] Deleting /root/project/JSite/jsite-web/target +[INFO] Deleting /root/project/JSite/jsite-web/src/main/webapp/WEB-INF/classes +[INFO] +[INFO] >>> spring-boot-maven-plugin:2.2.2.RELEASE:run (default-cli) > test-compile @ jsite-web >>> +[INFO] +[INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ jsite-web --- +[INFO] Using 'UTF-8' encoding to copy filtered resources. +[INFO] Copying 0 resource +[INFO] Copying 31 resources +[INFO] +[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ jsite-web --- +[INFO] Changes detected - recompiling the module! +[INFO] Compiling 16 source files to /root/project/JSite/jsite-web/src/main/webapp/WEB-INF/classes +[INFO] +[INFO] --- maven-resources-plugin:3.1.0:testResources (default-testResources) @ jsite-web --- +[INFO] Using 'UTF-8' encoding to copy filtered resources. +[INFO] skip non existing resourceDirectory /root/project/JSite/jsite-web/src/test/resources +[INFO] +[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ jsite-web --- +[INFO] Changes detected - recompiling the module! +[INFO] Compiling 2 source files to /root/project/JSite/jsite-web/target/test-classes +[INFO] +[INFO] <<< spring-boot-maven-plugin:2.2.2.RELEASE:run (default-cli) < test-compile @ jsite-web <<< +[INFO] +[INFO] +[INFO] --- spring-boot-maven-plugin:2.2.2.RELEASE:run (default-cli) @ jsite-web --- +[INFO] Attaching agents: [] +17:54:02.098 [main] DEBUG com.jsite.common.io.PropertiesUtils - Loading jsite config: [classpath:config/jsite-web.properties, classpath:config/jsite-error.properties, classpath:config/jsite-framework.properties, classpath:config/jsite-flowable.properties, classpath:config/jsite.yml, classpath:config/application.yml, classpath:application.yml] + + . ____ _ __ _ _ + /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ +( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ + \\/ ___)| |_)| | | | | || (_| | ) ) ) ) + ' |____| .__|_| |_|_| |_\__, | / / / / + =========|_|==============|___/=/_/_/_/ + :: Spring Boot :: (v2.2.2.RELEASE) + +2020-06-02 17:54:02,716 INFO (StartupInfoLogger.java:55)- Starting JSiteWebApplication on iZwz9bhh8xe8llwq50vg4dZ with PID 445 (/root/project/JSite/jsite-web/src/main/webapp/WEB-INF/classes started by root in /root/project/JSite/jsite-web) +2020-06-02 17:54:02,717 DEBUG (StartupInfoLogger.java:56)- Running with Spring Boot v2.2.2.RELEASE, Spring v5.2.2.RELEASE +2020-06-02 17:54:02,717 INFO (SpringApplication.java:651)- No active profile set, falling back to default profiles: default +2020-06-02 17:54:03,572 INFO (RepositoryConfigurationDelegate.java:249)- Multiple Spring Data modules found, entering strict repository configuration mode! +2020-06-02 17:54:03,573 INFO (RepositoryConfigurationDelegate.java:127)- Bootstrapping Spring Data Redis repositories in DEFAULT mode. +2020-06-02 17:54:03,630 INFO (RepositoryConfigurationDelegate.java:187)- Finished Spring Data repository scanning in 47ms. Found 0 Redis repository interfaces. +2020-06-02 17:54:03,899 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'shiroConfiguration' of type [com.jsite.modules.config.ShiroConfiguration$$EnhancerBySpringCGLIB$$f71cb0a0] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2020-06-02 17:54:03,972 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'credentialsMatcher' of type [org.apache.shiro.authc.credential.HashedCredentialsMatcher] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2020-06-02 17:54:03,976 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'shiroRealm' of type [com.jsite.modules.sys.security.SystemAuthorizingRealm] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2020-06-02 17:54:03,979 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'rememberMeCookie' of type [org.apache.shiro.web.servlet.SimpleCookie] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2020-06-02 17:54:03,982 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'rememberMeManager' of type [org.apache.shiro.web.mgt.CookieRememberMeManager] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2020-06-02 17:54:03,987 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'redisConfig' of type [com.jsite.modules.config.RedisConfig$$EnhancerBySpringCGLIB$$93442e2] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2020-06-02 17:54:03,992 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'jedisPoolConfig' of type [redis.clients.jedis.JedisPoolConfig] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2020-06-02 17:54:04,011 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'jedisConnectionFactory' of type [org.springframework.data.redis.connection.jedis.JedisConnectionFactory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2020-06-02 17:54:04,061 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'shiroRedisTemplate' of type [org.springframework.data.redis.core.RedisTemplate] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2020-06-02 17:54:04,061 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'redisManager' of type [com.jsite.common.security.RedisManager] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2020-06-02 17:54:04,062 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'cacheManager' of type [com.jsite.common.security.RedisCacheManager] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2020-06-02 17:54:04,063 DEBUG (RedisCacheManager.java:36)- get cache, name=authenticationCache +2020-06-02 17:54:04,063 DEBUG (RedisCacheManager.java:36)- get cache, name=authorizationCache +2020-06-02 17:54:04,065 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'sessionIdCookie' of type [org.apache.shiro.web.servlet.SimpleCookie] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2020-06-02 17:54:04,067 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'sessionDAO' of type [com.jsite.common.security.RedisSessionDAO] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2020-06-02 17:54:04,068 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'sessionFactory' of type [com.jsite.common.security.shiro.ShiroSessionFactory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2020-06-02 17:54:04,070 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'sessionManager' of type [com.jsite.common.security.shiro.ShiroSessionManager] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2020-06-02 17:54:04,071 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'securityManager' of type [org.apache.shiro.web.mgt.DefaultWebSecurityManager] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2020-06-02 17:54:04,074 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'formAuthenticationFilter' of type [com.jsite.modules.sys.security.FormAuthenticationFilter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2020-06-02 17:54:04,076 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'kickoutSessionControlFilter' of type [com.jsite.modules.sys.security.KickoutSessionControlFilter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2020-06-02 17:54:04,112 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'authorizationAttributeSourceAdvisor' of type [org.apache.shiro.spring.security.interceptor.AuthorizationAttributeSourceAdvisor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2020-06-02 17:54:04,138 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2020-06-02 17:54:04,867 INFO (TomcatWebServer.java:92)- Tomcat initialized with port(s): 8081 (http) +2020-06-02 17:54:04,875 INFO (DirectJDKLog.java:173)- Initializing ProtocolHandler ["http-nio-8081"] +2020-06-02 17:54:04,876 INFO (DirectJDKLog.java:173)- Starting service [Tomcat] +2020-06-02 17:54:04,876 INFO (DirectJDKLog.java:173)- Starting Servlet engine: [Apache Tomcat/9.0.29] +2020-06-02 17:54:04,926 INFO (DirectJDKLog.java:173)- Initializing Spring embedded WebApplicationContext +2020-06-02 17:54:04,926 INFO (ServletWebServerApplicationContext.java:284)- Root WebApplicationContext: initialization completed in 2159 ms +2020-06-02 17:54:05,014 INFO (DynamicRegistrationBean.java:110)- Filter shiroFilter was not registered (possibly already registered?) +2020-06-02 17:54:06,506 INFO (DruidDataSource.java:1010)- {dataSource-1} inited +2020-06-02 17:54:06,508 INFO (DatabaseConfiguration.java:207)- database product name: 'MySQL' +2020-06-02 17:54:06,509 INFO (DatabaseConfiguration.java:212)- using database type: mysql +2020-06-02 17:54:07,465 INFO (StdSchedulerFactory.java:1220)- Using default implementation for ThreadExecutor +2020-06-02 17:54:07,472 INFO (SchedulerSignalerImpl.java:61)- Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl +2020-06-02 17:54:07,472 INFO (QuartzScheduler.java:229)- Quartz Scheduler v.2.3.2 created. +2020-06-02 17:54:07,475 INFO (JobStoreSupport.java:672)- Using db table-based data access locking (synchronization). +2020-06-02 17:54:07,476 INFO (JobStoreCMT.java:145)- JobStoreCMT initialized. +2020-06-02 17:54:07,477 INFO (QuartzScheduler.java:294)- Scheduler meta-data: Quartz Scheduler (v2.3.2) 'quartzScheduler' with instanceId 'NON_CLUSTERED' + Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally. + NOT STARTED. + Currently in standby mode. + Number of jobs executed: 0 + Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads. + Using job-store 'org.springframework.scheduling.quartz.LocalDataSourceJobStore' - which supports persistence. and is not clustered. + +2020-06-02 17:54:07,477 INFO (StdSchedulerFactory.java:1374)- Quartz scheduler 'quartzScheduler' initialized from an externally provided properties instance. +2020-06-02 17:54:07,477 INFO (StdSchedulerFactory.java:1378)- Quartz scheduler version: 2.3.2 +2020-06-02 17:54:07,477 INFO (QuartzScheduler.java:2293)- JobFactory set to: org.springframework.scheduling.quartz.SpringBeanJobFactory@733bd6f3 +2020-06-02 17:54:07,732 INFO (AbstractEngineAutoConfiguration.java:94)- No deployment resources were found for autodeployment +2020-06-02 17:54:07,741 INFO (ExecutorConfigurationSupport.java:171)- Initializing ExecutorService +2020-06-02 17:54:07,742 INFO (ExecutorConfigurationSupport.java:171)- Initializing ExecutorService 'taskExecutor' +2020-06-02 17:54:09,660 INFO (AbstractEngineConfiguration.java:834)- Found 1 Engine Configurators in total: +2020-06-02 17:54:09,661 INFO (AbstractEngineConfiguration.java:836)- class org.flowable.idm.engine.configurator.IdmEngineConfigurator (priority:100000) +2020-06-02 17:54:09,661 INFO (AbstractEngineConfiguration.java:851)- Executing beforeInit() of class org.flowable.idm.engine.configurator.IdmEngineConfigurator (priority:100000) +2020-06-02 17:54:10,151 INFO (AbstractEngineConfiguration.java:858)- Executing configure() of class org.flowable.idm.engine.configurator.IdmEngineConfigurator (priority:100000) +2020-06-02 17:54:10,265 INFO (IdmEngineImpl.java:51)- IdmEngine default created +2020-06-02 17:54:10,311 INFO (ProcessEngineImpl.java:84)- ProcessEngine default created +2020-06-02 17:54:10,335 INFO (ValidateV5EntitiesCmd.java:43)- Total of v5 deployments found: 0 +2020-06-02 17:54:12,382 INFO (FlowableBeanConfig.java:50)- Configuring Liquibase +2020-06-02 17:54:12,704 INFO (Slf4jLogger.java:42)- SELECT COUNT(*) FROM jsite.ACT_DE_DATABASECHANGELOGLOCK +2020-06-02 17:54:12,712 INFO (Slf4jLogger.java:42)- SELECT COUNT(*) FROM jsite.ACT_DE_DATABASECHANGELOGLOCK +2020-06-02 17:54:12,714 INFO (Slf4jLogger.java:42)- SELECT `LOCKED` FROM jsite.ACT_DE_DATABASECHANGELOGLOCK WHERE ID=1 +2020-06-02 17:54:12,730 INFO (Slf4jLogger.java:42)- Successfully acquired change log lock +2020-06-02 17:54:13,252 INFO (Slf4jLogger.java:42)- SELECT MD5SUM FROM jsite.ACT_DE_DATABASECHANGELOG WHERE MD5SUM IS NOT NULL LIMIT 1 +2020-06-02 17:54:13,255 INFO (Slf4jLogger.java:42)- SELECT COUNT(*) FROM jsite.ACT_DE_DATABASECHANGELOG +2020-06-02 17:54:13,259 INFO (Slf4jLogger.java:42)- Reading from jsite.ACT_DE_DATABASECHANGELOG +2020-06-02 17:54:13,259 INFO (Slf4jLogger.java:42)- SELECT * FROM jsite.ACT_DE_DATABASECHANGELOG ORDER BY DATEEXECUTED ASC, ORDEREXECUTED ASC +2020-06-02 17:54:13,286 INFO (Slf4jLogger.java:42)- Successfully released change log lock +2020-06-02 17:54:13,977 WARN (JacksonAutoConfiguration.java:122)- Auto-configuration of Jackson's Joda-Time integration is deprecated in favor of using java.time (JSR-310). +2020-06-02 17:54:14,733 INFO (SchedulerFactoryBean.java:732)- Will start Quartz Scheduler [quartzScheduler] in 2 seconds +2020-06-02 17:54:14,741 INFO (DirectJDKLog.java:173)- Starting ProtocolHandler ["http-nio-8081"] +2020-06-02 17:54:14,752 INFO (TomcatWebServer.java:204)- Tomcat started on port(s): 8081 (http) with context path '/jsite' +2020-06-02 17:54:14,754 INFO (StartupInfoLogger.java:61)- Started JSiteWebApplication in 12.649 seconds (JVM running for 12.98) + +====================================================================== + + 欢迎使用 JSite Demo - Powered By http://jsite.org.cn + +====================================================================== + +2020-06-02 17:54:16,734 INFO (SchedulerFactoryBean.java:748)- Starting Quartz Scheduler now, after delay of 2 seconds +2020-06-02 17:54:16,745 INFO (JobStoreSupport.java:866)- Freed 0 triggers from 'acquired' / 'blocked' state. +2020-06-02 17:54:16,751 INFO (JobStoreSupport.java:876)- Recovering 0 jobs that were in-progress at the time of the last shut-down. +2020-06-02 17:54:16,751 INFO (JobStoreSupport.java:889)- Recovery complete. +2020-06-02 17:54:16,753 INFO (JobStoreSupport.java:896)- Removed 0 'complete' triggers. +2020-06-02 17:54:16,755 INFO (JobStoreSupport.java:901)- Removed 0 stale fired job entries. +2020-06-02 17:54:16,757 INFO (QuartzScheduler.java:547)- Scheduler quartzScheduler_$_NON_CLUSTERED started. +[INFO] ------------------------------------------------------------------------ +[INFO] BUILD FAILURE +[INFO] ------------------------------------------------------------------------ +[INFO] Total time: 01:47 min +[INFO] Finished at: 2020-06-02T17:55:44+08:00 +[INFO] ------------------------------------------------------------------------ +[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.2.2.RELEASE:run (default-cli) on project jsite-web: Application finished with exit code: 137 -> [Help 1] +[ERROR] +[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. +[ERROR] Re-run Maven using the -X switch to enable full debug logging. +[ERROR] +[ERROR] For more information about the errors and possible solutions, please read the following articles: +[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException +[INFO] Scanning for projects... +[INFO] +[INFO] -----------------------< cn.org.jsite:jsite-web >----------------------- +[INFO] Building JSite Web 0.6.0-SNAPSHOT +[INFO] --------------------------------[ war ]--------------------------------- +[WARNING] The POM for com.alibaba:druid:jar:1.1.21 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details +[INFO] +[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ jsite-web --- +[INFO] Deleting /root/project/JSite/jsite-web/target +[INFO] Deleting /root/project/JSite/jsite-web/src/main/webapp/WEB-INF/classes +[INFO] +[INFO] >>> spring-boot-maven-plugin:2.2.2.RELEASE:run (default-cli) > test-compile @ jsite-web >>> +[INFO] +[INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ jsite-web --- +[INFO] Using 'UTF-8' encoding to copy filtered resources. +[INFO] Copying 0 resource +[INFO] Copying 31 resources +[INFO] +[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ jsite-web --- +[INFO] Changes detected - recompiling the module! +[INFO] Compiling 16 source files to /root/project/JSite/jsite-web/src/main/webapp/WEB-INF/classes +[INFO] +[INFO] --- maven-resources-plugin:3.1.0:testResources (default-testResources) @ jsite-web --- +[INFO] Using 'UTF-8' encoding to copy filtered resources. +[INFO] skip non existing resourceDirectory /root/project/JSite/jsite-web/src/test/resources +[INFO] +[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ jsite-web --- +[INFO] Changes detected - recompiling the module! +[INFO] Compiling 2 source files to /root/project/JSite/jsite-web/target/test-classes +[INFO] +[INFO] <<< spring-boot-maven-plugin:2.2.2.RELEASE:run (default-cli) < test-compile @ jsite-web <<< +[INFO] +[INFO] +[INFO] --- spring-boot-maven-plugin:2.2.2.RELEASE:run (default-cli) @ jsite-web --- +[INFO] Attaching agents: [] +17:56:07.601 [main] DEBUG com.jsite.common.io.PropertiesUtils - Loading jsite config: [classpath:config/jsite-web.properties, classpath:config/jsite-error.properties, classpath:config/jsite-framework.properties, classpath:config/jsite-flowable.properties, classpath:config/jsite.yml, classpath:config/application.yml, classpath:application.yml] + + . ____ _ __ _ _ + /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ +( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ + \\/ ___)| |_)| | | | | || (_| | ) ) ) ) + ' |____| .__|_| |_|_| |_\__, | / / / / + =========|_|==============|___/=/_/_/_/ + :: Spring Boot :: (v2.2.2.RELEASE) + +2020-06-02 17:56:08,189 INFO (StartupInfoLogger.java:55)- Starting JSiteWebApplication on iZwz9bhh8xe8llwq50vg4dZ with PID 618 (/root/project/JSite/jsite-web/src/main/webapp/WEB-INF/classes started by root in /root/project/JSite/jsite-web) +2020-06-02 17:56:08,190 DEBUG (StartupInfoLogger.java:56)- Running with Spring Boot v2.2.2.RELEASE, Spring v5.2.2.RELEASE +2020-06-02 17:56:08,191 INFO (SpringApplication.java:651)- No active profile set, falling back to default profiles: default +2020-06-02 17:56:09,032 INFO (RepositoryConfigurationDelegate.java:249)- Multiple Spring Data modules found, entering strict repository configuration mode! +2020-06-02 17:56:09,034 INFO (RepositoryConfigurationDelegate.java:127)- Bootstrapping Spring Data Redis repositories in DEFAULT mode. +2020-06-02 17:56:09,090 INFO (RepositoryConfigurationDelegate.java:187)- Finished Spring Data repository scanning in 46ms. Found 0 Redis repository interfaces. +2020-06-02 17:56:09,358 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'shiroConfiguration' of type [com.jsite.modules.config.ShiroConfiguration$$EnhancerBySpringCGLIB$$7c28980d] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2020-06-02 17:56:09,429 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'credentialsMatcher' of type [org.apache.shiro.authc.credential.HashedCredentialsMatcher] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2020-06-02 17:56:09,433 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'shiroRealm' of type [com.jsite.modules.sys.security.SystemAuthorizingRealm] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2020-06-02 17:56:09,435 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'rememberMeCookie' of type [org.apache.shiro.web.servlet.SimpleCookie] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2020-06-02 17:56:09,438 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'rememberMeManager' of type [org.apache.shiro.web.mgt.CookieRememberMeManager] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2020-06-02 17:56:09,443 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'redisConfig' of type [com.jsite.modules.config.RedisConfig$$EnhancerBySpringCGLIB$$8e402a4f] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2020-06-02 17:56:09,447 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'jedisPoolConfig' of type [redis.clients.jedis.JedisPoolConfig] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2020-06-02 17:56:09,466 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'jedisConnectionFactory' of type [org.springframework.data.redis.connection.jedis.JedisConnectionFactory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2020-06-02 17:56:09,514 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'shiroRedisTemplate' of type [org.springframework.data.redis.core.RedisTemplate] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2020-06-02 17:56:09,515 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'redisManager' of type [com.jsite.common.security.RedisManager] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2020-06-02 17:56:09,516 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'cacheManager' of type [com.jsite.common.security.RedisCacheManager] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2020-06-02 17:56:09,516 DEBUG (RedisCacheManager.java:36)- get cache, name=authenticationCache +2020-06-02 17:56:09,517 DEBUG (RedisCacheManager.java:36)- get cache, name=authorizationCache +2020-06-02 17:56:09,518 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'sessionIdCookie' of type [org.apache.shiro.web.servlet.SimpleCookie] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2020-06-02 17:56:09,520 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'sessionDAO' of type [com.jsite.common.security.RedisSessionDAO] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2020-06-02 17:56:09,521 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'sessionFactory' of type [com.jsite.common.security.shiro.ShiroSessionFactory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2020-06-02 17:56:09,524 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'sessionManager' of type [com.jsite.common.security.shiro.ShiroSessionManager] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2020-06-02 17:56:09,525 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'securityManager' of type [org.apache.shiro.web.mgt.DefaultWebSecurityManager] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2020-06-02 17:56:09,528 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'formAuthenticationFilter' of type [com.jsite.modules.sys.security.FormAuthenticationFilter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2020-06-02 17:56:09,530 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'kickoutSessionControlFilter' of type [com.jsite.modules.sys.security.KickoutSessionControlFilter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2020-06-02 17:56:09,567 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'authorizationAttributeSourceAdvisor' of type [org.apache.shiro.spring.security.interceptor.AuthorizationAttributeSourceAdvisor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2020-06-02 17:56:09,593 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2020-06-02 17:56:10,314 INFO (TomcatWebServer.java:92)- Tomcat initialized with port(s): 8081 (http) +2020-06-02 17:56:10,320 INFO (DirectJDKLog.java:173)- Initializing ProtocolHandler ["http-nio-8081"] +2020-06-02 17:56:10,321 INFO (DirectJDKLog.java:173)- Starting service [Tomcat] +2020-06-02 17:56:10,321 INFO (DirectJDKLog.java:173)- Starting Servlet engine: [Apache Tomcat/9.0.29] +2020-06-02 17:56:10,372 INFO (DirectJDKLog.java:173)- Initializing Spring embedded WebApplicationContext +2020-06-02 17:56:10,373 INFO (ServletWebServerApplicationContext.java:284)- Root WebApplicationContext: initialization completed in 2124 ms +2020-06-02 17:56:10,461 INFO (DynamicRegistrationBean.java:110)- Filter shiroFilter was not registered (possibly already registered?) +2020-06-02 17:56:11,967 INFO (DruidDataSource.java:1010)- {dataSource-1} inited +2020-06-02 17:56:11,969 INFO (DatabaseConfiguration.java:207)- database product name: 'MySQL' +2020-06-02 17:56:11,969 INFO (DatabaseConfiguration.java:212)- using database type: mysql +2020-06-02 17:56:12,783 INFO (StdSchedulerFactory.java:1220)- Using default implementation for ThreadExecutor +2020-06-02 17:56:12,791 INFO (SchedulerSignalerImpl.java:61)- Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl +2020-06-02 17:56:12,791 INFO (QuartzScheduler.java:229)- Quartz Scheduler v.2.3.2 created. +2020-06-02 17:56:12,794 INFO (JobStoreSupport.java:672)- Using db table-based data access locking (synchronization). +2020-06-02 17:56:12,795 INFO (JobStoreCMT.java:145)- JobStoreCMT initialized. +2020-06-02 17:56:12,796 INFO (QuartzScheduler.java:294)- Scheduler meta-data: Quartz Scheduler (v2.3.2) 'quartzScheduler' with instanceId 'NON_CLUSTERED' + Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally. + NOT STARTED. + Currently in standby mode. + Number of jobs executed: 0 + Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads. + Using job-store 'org.springframework.scheduling.quartz.LocalDataSourceJobStore' - which supports persistence. and is not clustered. + +2020-06-02 17:56:12,796 INFO (StdSchedulerFactory.java:1374)- Quartz scheduler 'quartzScheduler' initialized from an externally provided properties instance. +2020-06-02 17:56:12,797 INFO (StdSchedulerFactory.java:1378)- Quartz scheduler version: 2.3.2 +2020-06-02 17:56:12,797 INFO (QuartzScheduler.java:2293)- JobFactory set to: org.springframework.scheduling.quartz.SpringBeanJobFactory@5badeda0 +2020-06-02 17:56:13,186 INFO (AbstractEngineAutoConfiguration.java:94)- No deployment resources were found for autodeployment +2020-06-02 17:56:13,194 INFO (ExecutorConfigurationSupport.java:171)- Initializing ExecutorService +2020-06-02 17:56:13,195 INFO (ExecutorConfigurationSupport.java:171)- Initializing ExecutorService 'taskExecutor' +2020-06-02 17:56:15,106 INFO (AbstractEngineConfiguration.java:834)- Found 1 Engine Configurators in total: +2020-06-02 17:56:15,106 INFO (AbstractEngineConfiguration.java:836)- class org.flowable.idm.engine.configurator.IdmEngineConfigurator (priority:100000) +2020-06-02 17:56:15,106 INFO (AbstractEngineConfiguration.java:851)- Executing beforeInit() of class org.flowable.idm.engine.configurator.IdmEngineConfigurator (priority:100000) +2020-06-02 17:56:15,597 INFO (AbstractEngineConfiguration.java:858)- Executing configure() of class org.flowable.idm.engine.configurator.IdmEngineConfigurator (priority:100000) +2020-06-02 17:56:15,712 INFO (IdmEngineImpl.java:51)- IdmEngine default created +2020-06-02 17:56:15,756 INFO (ProcessEngineImpl.java:84)- ProcessEngine default created +2020-06-02 17:56:16,061 INFO (ValidateV5EntitiesCmd.java:43)- Total of v5 deployments found: 0 +2020-06-02 17:56:17,836 INFO (FlowableBeanConfig.java:50)- Configuring Liquibase +2020-06-02 17:56:18,158 INFO (Slf4jLogger.java:42)- SELECT COUNT(*) FROM jsite.ACT_DE_DATABASECHANGELOGLOCK +2020-06-02 17:56:18,161 INFO (Slf4jLogger.java:42)- SELECT COUNT(*) FROM jsite.ACT_DE_DATABASECHANGELOGLOCK +2020-06-02 17:56:18,164 INFO (Slf4jLogger.java:42)- SELECT `LOCKED` FROM jsite.ACT_DE_DATABASECHANGELOGLOCK WHERE ID=1 +2020-06-02 17:56:18,179 INFO (Slf4jLogger.java:42)- Successfully acquired change log lock +2020-06-02 17:56:18,704 INFO (Slf4jLogger.java:42)- SELECT MD5SUM FROM jsite.ACT_DE_DATABASECHANGELOG WHERE MD5SUM IS NOT NULL LIMIT 1 +2020-06-02 17:56:18,706 INFO (Slf4jLogger.java:42)- SELECT COUNT(*) FROM jsite.ACT_DE_DATABASECHANGELOG +2020-06-02 17:56:18,711 INFO (Slf4jLogger.java:42)- Reading from jsite.ACT_DE_DATABASECHANGELOG +2020-06-02 17:56:18,711 INFO (Slf4jLogger.java:42)- SELECT * FROM jsite.ACT_DE_DATABASECHANGELOG ORDER BY DATEEXECUTED ASC, ORDEREXECUTED ASC +2020-06-02 17:56:18,737 INFO (Slf4jLogger.java:42)- Successfully released change log lock +2020-06-02 17:56:19,432 WARN (JacksonAutoConfiguration.java:122)- Auto-configuration of Jackson's Joda-Time integration is deprecated in favor of using java.time (JSR-310). +2020-06-02 17:56:20,193 INFO (SchedulerFactoryBean.java:732)- Will start Quartz Scheduler [quartzScheduler] in 2 seconds +2020-06-02 17:56:20,201 INFO (DirectJDKLog.java:173)- Starting ProtocolHandler ["http-nio-8081"] +2020-06-02 17:56:20,213 INFO (TomcatWebServer.java:204)- Tomcat started on port(s): 8081 (http) with context path '/jsite' +2020-06-02 17:56:20,215 INFO (StartupInfoLogger.java:61)- Started JSiteWebApplication in 12.607 seconds (JVM running for 12.926) + +====================================================================== + + 欢迎使用 JSite Demo - Powered By http://jsite.org.cn + +====================================================================== + +2020-06-02 17:56:22,194 INFO (SchedulerFactoryBean.java:748)- Starting Quartz Scheduler now, after delay of 2 seconds +2020-06-02 17:56:22,211 INFO (JobStoreSupport.java:866)- Freed 0 triggers from 'acquired' / 'blocked' state. +2020-06-02 17:56:22,217 INFO (JobStoreSupport.java:876)- Recovering 0 jobs that were in-progress at the time of the last shut-down. +2020-06-02 17:56:22,217 INFO (JobStoreSupport.java:889)- Recovery complete. +2020-06-02 17:56:22,219 INFO (JobStoreSupport.java:896)- Removed 0 'complete' triggers. +2020-06-02 17:56:22,221 INFO (JobStoreSupport.java:901)- Removed 0 stale fired job entries. +2020-06-02 17:56:22,223 INFO (QuartzScheduler.java:547)- Scheduler quartzScheduler_$_NON_CLUSTERED started. diff --git a/jsite-web/pom.xml b/jsite-web/pom.xml index 0add097c..2bcd18ee 100644 --- a/jsite-web/pom.xml +++ b/jsite-web/pom.xml @@ -30,7 +30,6 @@ org.springframework.boot spring-boot-starter-tomcat - provided diff --git a/jsite-web/src/main/resources/application.properties b/jsite-web/src/main/resources/application.properties index e508fe4c..5fa1c831 100644 --- a/jsite-web/src/main/resources/application.properties +++ b/jsite-web/src/main/resources/application.properties @@ -9,9 +9,9 @@ beetlsql.enabled=false #===== Database sttings =====# #============================# spring.aop.proxy-target-class=true -spring.datasource.master.url=jdbc:mysql://xx.xx.xx.xx:3306/jsite?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&autoReconnect=true&failOverReadOnly=false&serverTimezone=GMT%2B8 -spring.datasource.master.username=root -spring.datasource.master.password=xxxx +spring.datasource.master.url=jdbc:mysql://${server_ip:127.0.0.1}:${mysql_port:3306}/jsite?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&autoReconnect=true&failOverReadOnly=false&serverTimezone=GMT%2B8 +spring.datasource.master.username=${mysql_username:root} +spring.datasource.master.password=${mysql_password:root} spring.datasource.master.driver-class-name=com.mysql.cj.jdbc.Driver # ʼС spring.datasource.master.initial-size=5 @@ -39,9 +39,9 @@ spring.datasource.master.maxPoolPreparedStatementPerConnectionSize=20 spring.datasource.master.maxOpenPreparedStatements=20 spring.datasource.master.connectionProperties=druid.stat.slowSqlMillis=200;druid.stat.logSlowSql=true;config.decrypt=false -spring.datasource.slave1.url=jdbc:mysql://xx.xx.xx.xx:3306/jsite?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&autoReconnect=true&failOverReadOnly=false&serverTimezone=GMT%2B8 -spring.datasource.slave1.username=root -spring.datasource.slave1.password=xxxx +spring.datasource.slave1.url=jdbc:mysql://${server_ip:127.0.0.1}:${mysql_port:3306}/jsite?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&autoReconnect=true&failOverReadOnly=false&serverTimezone=GMT%2B8 +spring.datasource.slave1.username=${mysql_username:root} +spring.datasource.slave1.password=${mysql_password:root} spring.datasource.slave1.driver-class-name=com.mysql.cj.jdbc.Driver spring.datasource.slave1.initial-size=5 spring.datasource.slave1.min-idle=5 @@ -59,9 +59,9 @@ spring.datasource.slave1.maxPoolPreparedStatementPerConnectionSize=20 spring.datasource.slave1.maxOpenPreparedStatements=20 spring.datasource.slave1.connectionProperties=druid.stat.slowSqlMillis=200;druid.stat.logSlowSql=true;config.decrypt=false -spring.datasource.slave2.url=jdbc:mysql://xx.xx.xx.xx:3306/jsite?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&autoReconnect=true&failOverReadOnly=false&serverTimezone=GMT%2B8 -spring.datasource.slave2.username=root -spring.datasource.slave2.password=xxxx +spring.datasource.slave2.url=jdbc:mysql://${server_ip:127.0.0.1}:${mysql_port:3306}/jsite?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&autoReconnect=true&failOverReadOnly=false&serverTimezone=GMT%2B8 +spring.datasource.slave2.username=${mysql_username:root} +spring.datasource.slave2.password=${mysql_password:root} spring.datasource.slave2.driver-class-name=com.mysql.cj.jdbc.Driver spring.datasource.slave2.initial-size=5 spring.datasource.slave2.min-idle=5 @@ -77,4 +77,4 @@ spring.datasource.slave2.filters=config,wall,stat spring.datasource.slave2.poolPreparedStatements=true spring.datasource.slave2.maxPoolPreparedStatementPerConnectionSize=20 spring.datasource.slave2.maxOpenPreparedStatements=20 -spring.datasource.slave2.connectionProperties=druid.stat.slowSqlMillis=200;druid.stat.logSlowSql=true;config.decrypt=false \ No newline at end of file +spring.datasource.slave2.connectionProperties=druid.stat.slowSqlMillis=200;druid.stat.logSlowSql=true;config.decrypt=false diff --git a/pom.xml b/pom.xml index f89c9745..f2a4bb6d 100644 --- a/pom.xml +++ b/pom.xml @@ -82,7 +82,6 @@ javax.servlet javax.servlet-api - provided diff --git a/run.sh b/run.sh new file mode 100644 index 00000000..15125762 --- /dev/null +++ b/run.sh @@ -0,0 +1,12 @@ +#! /bin/sh +# 1. kill,防止改端口 +sh shutdown.sh 8081 +# 2. pull +git pull origin master +# 3. install +mvn clean install +# 4. run +cd jsite-web +pwd +nohup mvn clean spring-boot:run & +tail -F nohup.out diff --git a/shutdown.sh b/shutdown.sh new file mode 100644 index 00000000..9ff53bf7 --- /dev/null +++ b/shutdown.sh @@ -0,0 +1,10 @@ +#! /bin/bash +port=$1 +echo $port +#根据端口号查询对应的pid +pid=$(netstat -nlp | grep :$port | awk '{print $7}' | awk -F"/" '{ print $1 }'); + +#杀掉对应的进程,如果pid不存在,则不执行 +if [ -n "$pid" ]; then + kill -9 $pid; +fi -- Gitee From 9ce74ed437789b628b4966c8894a1f245ecf1786 Mon Sep 17 00:00:00 2001 From: wulinghui <873406903@qq.com> Date: Tue, 2 Jun 2020 18:02:30 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=BF=BD=E7=95=A5nohup.out?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 95116bd1..030f20a3 100644 --- a/.gitignore +++ b/.gitignore @@ -46,9 +46,10 @@ buildNumber.properties *.log *.log.lck *.log.* +nohup.out # # pd *.pdb # mybatis-generator.xml -*.db \ No newline at end of file +*.db -- Gitee