Commit 255758dc authored by 张永's avatar 张永

改目录

parent d82479d0
......@@ -21,6 +21,11 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
......
package com.egolm.jobs;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.ApplicationContext;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
@EnableCaching
@EnableSwagger2
@SpringBootApplication
@EnableTransactionManagement
public class JobsApplication {
private static ApplicationContext applicationContext;
public static void main(String[] args) {
applicationContext = SpringApplication.run(JobsApplication.class, args);
}
public static ApplicationContext getApplicationContext() {
return applicationContext;
}
public static Object getBean(String name){
return getApplicationContext().getBean(name);
}
public static <T> T getBean(Class<T> clazz){
return getApplicationContext().getBean(clazz);
}
public static <T> T getBean(String name, Class<T> clazz){
return getApplicationContext().getBean(name, clazz);
}
}
package cn.ossip.jobs.config;
package com.egolm.jobs.config;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
......
package cn.ossip.jobs.config;
package com.egolm.jobs.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
......@@ -25,7 +25,7 @@ public class SwaggerConfig {
private ApiInfo apiInfo() {
return new ApiInfoBuilder()
.title("在线文档")
.title("定时任务在线文档")
.description("在线文档")
.termsOfServiceUrl("NO terms of service")
.version("1.0")
......
package cn.ossip.jobs.config;
package com.egolm.jobs.config;
import java.util.EventListener;
......
package cn.ossip.jobs.config;
package com.egolm.jobs.config;
import com.egolm.common.bean.Rjx;
......
package cn.ossip.jobs.config.datasource;
package com.egolm.jobs.config.datasource;
import javax.sql.DataSource;
......
package cn.ossip.jobs.config.schedule;
package com.egolm.jobs.config.schedule;
import java.util.Date;
......
package cn.ossip.jobs.config.schedule;
package com.egolm.jobs.config.schedule;
import java.util.Properties;
......
package cn.ossip.jobs.config.schedule;
package com.egolm.jobs.config.schedule;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
......
package cn.ossip.jobs.config.schedule;
package com.egolm.jobs.config.schedule;
import java.util.Date;
......@@ -18,8 +18,7 @@ import org.quartz.TriggerBuilder;
import org.quartz.TriggerKey;
import com.egolm.common.StringUtil;
import cn.ossip.jobs.config.schedule.ScheduleConfig.RunFlag;
import com.egolm.jobs.config.schedule.ScheduleConfig.RunFlag;
/**
* Quartz Schedule 工具
......
package cn.ossip.jobs.config.schedule;
package com.egolm.jobs.config.schedule;
import cn.ossip.jobs.config.XException;
import com.egolm.jobs.config.XException;
public class XScheduleException extends XException {
......
server.tomcat.max-threads=1000
server.tomcat.min-spare-threads=30
server.port=8088
server.context-path=/
server.port=30002
server.context-path=/jobs
server.session.timeout=90000
server.tomcat.uri-encoding=utf-8
......@@ -21,9 +21,9 @@ spring.datasource.schedule.validationQuery=SELECT 1
spring.datasource.schedule.timeBetweenEvictionRunsMillis=3600000
spring.datasource.shop.username=sa
spring.datasource.shop.password=qiyang
spring.datasource.shop.url=jdbc:sqlserver://10.10.0.51:56443;instanceName=SQLSERVER;DatabaseName=EGOLMSAAS
spring.datasource.shop.username=ERP
spring.datasource.shop.password=qiyang@2013
spring.datasource.shop.url=jdbc:sqlserver://10.10.0.22:1433;instanceName=SQLSERVER;DatabaseName=EGOLMDEV
spring.datasource.shop.driver-class-name=com.microsoft.sqlserver.jdbc.SQLServerDriver
spring.datasource.shop.testWhileIdle=true
spring.datasource.shop.validationQuery=SELECT 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment