• 大小: 4.56MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-08-16
  • 语言: 其他
  • 标签: springboot  

资源简介

springboot + shiro + mybatis-plus + beetl后台管理系统

资源截图

代码片段和文件信息

package com.stylefeng.guns;

import com.stylefeng.guns.config.properties.GunsProperties;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * SpringBoot方式启动类
 *
 * @author stylefeng
 * @Date 2017/5/21 12:06
 */
@SpringBootApplication
public class GunsApplication extends WebMvcConfigurerAdapter {

    protected final static Logger logger = LoggerFactory.getLogger(GunsApplication.class);

    @Autowired
    GunsProperties gunsProperties;

    /**
     * 增加swagger的支持
     */
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        if (gunsProperties.getSwaggerOpen()) {
            registry.addResourceHandler(“swagger-ui.html“).addResourceLocations(“classpath:/meta-INF/resources/“);
            registry.addResourceHandler(“/webjars/**“).addResourceLocations(“classpath:/meta-INF/resources/webjars/“);
        }
    }

    public static void main(String[] args) {
        SpringApplication.run(GunsApplication.class args);
        logger.info(“GunsApplication is success!“);
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-01-28 10:35  guns\
     文件         115  2018-01-28 10:35  guns\.gitattributes
     文件         359  2018-01-28 10:35  guns\.gitignore
     文件         549  2018-01-28 10:35  guns\LICENSE
     文件       12610  2018-01-28 10:35  guns\README.md
     目录           0  2018-01-28 10:35  guns\guns-admin\
     目录           0  2018-01-28 10:35  guns\guns-admin\doc\
     文件        1068  2018-01-28 10:35  guns\guns-admin\doc\上线发布流程.md
     文件        1010  2018-01-28 10:35  guns\guns-admin\doc\多机环境部署注意事项.md
     文件        6054  2018-01-28 10:35  guns\guns-admin\pom.xml
     目录           0  2018-01-28 10:35  guns\guns-admin\sql\
     文件       24058  2018-01-28 10:35  guns\guns-admin\sql\guns.sql
     目录           0  2018-01-28 10:35  guns\guns-admin\src\
     目录           0  2018-01-28 10:35  guns\guns-admin\src\main\
     目录           0  2018-01-28 10:35  guns\guns-admin\src\main\java\
     目录           0  2018-01-28 10:35  guns\guns-admin\src\main\java\com\
     目录           0  2018-01-28 10:35  guns\guns-admin\src\main\java\com\stylefeng\
     目录           0  2018-01-28 10:35  guns\guns-admin\src\main\java\com\stylefeng\guns\
     文件        1405  2018-01-28 10:35  guns\guns-admin\src\main\java\com\stylefeng\guns\GunsApplication.java
     文件         495  2018-01-28 10:35  guns\guns-admin\src\main\java\com\stylefeng\guns\GunsServletInitializer.java
     目录           0  2018-01-28 10:35  guns\guns-admin\src\main\java\com\stylefeng\guns\common\
     目录           0  2018-01-28 10:35  guns\guns-admin\src\main\java\com\stylefeng\guns\common\annotion\
     文件         810  2018-01-28 10:35  guns\guns-admin\src\main\java\com\stylefeng\guns\common\annotion\BussinessLog.java
     文件         521  2018-01-28 10:35  guns\guns-admin\src\main\java\com\stylefeng\guns\common\annotion\Permission.java
     目录           0  2018-01-28 10:35  guns\guns-admin\src\main\java\com\stylefeng\guns\common\constant\
     文件         576  2018-01-28 10:35  guns\guns-admin\src\main\java\com\stylefeng\guns\common\constant\Const.java
     文件         322  2018-01-28 10:35  guns\guns-admin\src\main\java\com\stylefeng\guns\common\constant\DatasourceEnum.java
     目录           0  2018-01-28 10:35  guns\guns-admin\src\main\java\com\stylefeng\guns\common\constant\cache\
     文件         240  2018-01-28 10:35  guns\guns-admin\src\main\java\com\stylefeng\guns\common\constant\cache\Cache.java
     文件         395  2018-01-28 10:35  guns\guns-admin\src\main\java\com\stylefeng\guns\common\constant\cache\CacheKey.java
     目录           0  2018-01-28 10:35  guns\guns-admin\src\main\java\com\stylefeng\guns\common\constant\dictmap\
............此处省略1276个文件信息

评论

共有 条评论