springboot 定时任务加layui的界面版


在springboot中通过读取数据库的定时任务信息,动态生成quartz定时任务
资源截图
代码片段和文件信息
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.  See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.  The ASF licenses this file
to you under the Apache License Version 2.0 (the
“License“); you may not use this file except in compliance
with the License.  You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing
software distributed under the License is distributed on an
“AS IS“ BASIS WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND either express or implied.  See the License for the
specific language governing permissions and limitations
under the License.
*/

import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.net.URL;
import java.nio.channels.Channels;
import java.nio.channels.ReadableByteChannel;
import java.util.Properties;

public class MavenWrapperDownloader {

    /**
     * Default URL to download the maven-wrapper.jar from if no ‘downloadUrl‘ is provided.
     */
    private static final String DEFAULT_DOWNLOAD_URL =
            “https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar“;

    /**
     * Path to the maven-wrapper.properties file which might contain a downloadUrl property to
     * use instead of the default one.
     */
    private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
            “.mvn/wrapper/maven-wrapper.properties“;

    /**
     * Path where the maven-wrapper.jar will be saved to.
     */
    private static final String MAVEN_WRAPPER_JAR_PATH =
            “.mvn/wrapper/maven-wrapper.jar“;

    /**
     * Name of the property which should be used to override the default download url for the wrapper.
     */
    private static final String PROPERTY_NAME_WRAPPER_URL = “wrapperUrl“;

    public static void main(String args[]) {
        System.out.println(“- Downloader started“);
        File baseDirectory = new File(args[0]);
        System.out.println(“- Using base directory: “ + baseDirectory.getAbsolutePath());

        // If the maven-wrapper.properties exists read it and check if it contains a custom
        // wrapperUrl parameter.
        File mavenWrapperPropertyFile = new File(baseDirectory MAVEN_WRAPPER_PROPERTIES_PATH);
        String url = DEFAULT_DOWNLOAD_URL;
        if (mavenWrapperPropertyFile.exists()) {
            FileInputStream mavenWrapperPropertyFileInputStream = null;
            try {
                mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
                Properties mavenWrapperProperties = new Properties();
                mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
                url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL url);
            } catch (IOException e) {
                Syste

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        277  2019-02-24 15:47  quartz02.gitignore

     文件      48337  2019-02-24 15:47  quartz02.mvnwrappermaven-wrapper.jar

     文件        116  2019-02-24 15:47  quartz02.mvnwrappermaven-wrapper.properties

     文件       4628  2019-02-24 15:48  quartz02.mvnwrapperMavenWrapperDownloader.java

     文件        789  2019-02-24 15:47  quartz02HELP.md

     文件       9113  2019-02-24 15:47  quartz02mvnw

     文件       5810  2019-02-24 15:47  quartz02mvnw.cmd

     文件       5172  2019-02-25 10:59  quartz02pom.xml

     文件      11062  2019-02-24 16:28  quartz02quartz02.iml

     文件        833  2019-02-25 15:21  quartz02srcmainjavacomzkingquartz02configMyWebAppConfigurer.java

     文件       5802  2019-02-25 16:20  quartz02srcmainjavacomzkingquartz02controllerFtlController.java

     文件        671  2019-02-24 16:55  quartz02srcmainjavacomzkingquartz02mapperScheduleTriggerMapper.java

     文件       4115  2019-02-24 16:49  quartz02srcmainjavacomzkingquartz02mapperScheduleTriggerMapper.xml

     文件        775  2019-02-24 16:55  quartz02srcmainjavacomzkingquartz02mapperScheduleTriggerParamMapper.java

     文件       3960  2019-02-24 16:50  quartz02srcmainjavacomzkingquartz02mapperScheduleTriggerParamMapper.xml

     文件       1328  2019-02-24 16:31  quartz02srcmainjavacomzkingquartz02modelScheduleTrigger.java

     文件       1253  2019-02-24 16:31  quartz02srcmainjavacomzkingquartz02modelScheduleTriggerParam.java

     文件        539  2019-02-25 08:59  quartz02srcmainjavacomzkingquartz02quartzMyJob.java

     文件        797  2019-02-25 09:02  quartz02srcmainjavacomzkingquartz02quartzMyJob1.java

     文件        657  2019-02-25 09:01  quartz02srcmainjavacomzkingquartz02quartzMyJob2.java

     文件       1066  2019-02-25 09:30  quartz02srcmainjavacomzkingquartz02quartzMyJobFactory.java

     文件       1761  2019-02-24 16:46  quartz02srcmainjavacomzkingquartz02quartzQuartzConfiguration.java

     文件        546  2019-02-25 10:26  quartz02srcmainjavacomzkingquartz02Quartz02Application.java

     文件        902  2019-02-25 15:49  quartz02srcmainjavacomzkingquartz02serviceimplOutScheduleTriggerServiceImpl.java

     文件        807  2019-02-24 16:58  quartz02srcmainjavacomzkingquartz02serviceimplScheduleTriggerParamServiceImpl.java

     文件       5034  2019-02-25 08:44  quartz02srcmainjavacomzkingquartz02serviceimplScheduleTriggerServiceImpl.java

     文件        435  2019-02-24 16:58  quartz02srcmainjavacomzkingquartz02serviceScheduleTriggerParamService.java

     文件        517  2019-02-25 15:49  quartz02srcmainjavacomzkingquartz02serviceScheduleTriggerService.java

     文件       6543  2019-02-24 16:36  quartz02srcmainjavacomzkingquartz02utilDruidConnectionProvider.java

     文件       3497  2019-02-25 10:05  quartz02srcmain
esourcesapplication.yml

............此处省略336个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)