• 大小: 520KB
    文件类型: .zip
    金币: 2
    下载: 2 次
    发布日期: 2021-05-28
  • 语言: JavaScript
  • 标签:

资源简介

这是东软his系统,这个系统使用了springboot+mybatis的框架,以thymeleaf为模板引擎,使用了JavaScript,jQuery,等相关前后端交互技术,是一个可以用来练手的项目,增加对springboot项目的理解。

资源截图

代码片段和文件信息

package com.neusoft;

import com.neusoft.Interceptor.DoctorInterceptor;
import com.neusoft.Interceptor.PatientInterceptor;
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.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@SpringBootApplication
public class HisApplication implements WebMvcConfigurer {

    @Autowired
    private PatientInterceptor patientInterceptor;
    @Autowired
    private DoctorInterceptor doctorInterceptor;

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(patientInterceptor).excludePathPatterns(“/Patient/PatientController/selectByPid“);
        registry.addInterceptor(patientInterceptor).addPathPatterns(“/Patient/**“).excludePathPatterns(“/Patient/PatientController/selectByPid1“);

        registry.addInterceptor(doctorInterceptor).addPathPatterns(“/Doctor/**“).excludePathPatterns(“/Doctor/DoctorController/selectByDeptId“);

    }

//    @Override
//    public void addResourceHandlers(ResourceHandlerRegistry registry) {
//        registry.addResourceHandler(“classpath:/resources/“);
//        registry.addResourceHandler(“classpath:/img/“);
//        registry.addResourceHandler(“classpath:/js/“);
//        registry.addResourceHandler(“classpath:/css/“);
//    }

    public static void main(String[] args) {
        SpringApplication.run(HisApplication.class args);
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2020-07-06 02:33  his3\
     目录           0  2020-07-06 02:33  his3\.git\
     文件          19  2020-07-05 21:41  his3\.git\COMMIT_EDITMSG
     文件          23  2020-07-05 10:21  his3\.git\HEAD
     文件          41  2020-07-05 10:15  his3\.git\ORIG_HEAD
     文件         300  2020-07-05 10:21  his3\.git\config
     文件          73  2020-06-26 00:55  his3\.git\description
     目录           0  2020-07-06 02:33  his3\.git\hooks\
     文件         478  2020-06-26 00:55  his3\.git\hooks\applypatch-msg.sample
     文件         896  2020-06-26 00:55  his3\.git\hooks\commit-msg.sample
     文件        4655  2020-06-26 00:55  his3\.git\hooks\fsmonitor-watchman.sample
     文件         189  2020-06-26 00:55  his3\.git\hooks\post-update.sample
     文件         424  2020-06-26 00:55  his3\.git\hooks\pre-applypatch.sample
     文件        1643  2020-06-26 00:55  his3\.git\hooks\pre-commit.sample
     文件         416  2020-06-26 00:55  his3\.git\hooks\pre-merge-commit.sample
     文件        1348  2020-06-26 00:55  his3\.git\hooks\pre-push.sample
     文件        4898  2020-06-26 00:55  his3\.git\hooks\pre-rebase.sample
     文件         544  2020-06-26 00:55  his3\.git\hooks\pre-receive.sample
     文件        1492  2020-06-26 00:55  his3\.git\hooks\prepare-commit-msg.sample
     文件        3635  2020-06-26 00:55  his3\.git\hooks\update.sample
     文件       12503  2020-07-06 01:45  his3\.git\index
     目录           0  2020-07-06 02:33  his3\.git\info\
     文件         240  2020-06-26 00:55  his3\.git\info\exclude
     目录           0  2020-07-06 02:33  his3\.git\logs\
     文件        1706  2020-07-05 21:41  his3\.git\logs\HEAD
     目录           0  2020-07-06 02:33  his3\.git\logs\refs\
     目录           0  2020-07-06 02:33  his3\.git\logs\refs\heads\
     文件        1287  2020-07-05 21:41  his3\.git\logs\refs\heads\master
     目录           0  2020-07-06 02:33  his3\.git\logs\refs\remotes\
     目录           0  2020-07-06 02:33  his3\.git\logs\refs\remotes\origin\
     文件         864  2020-07-05 21:53  his3\.git\logs\refs\remotes\origin\master
............此处省略780个文件信息

评论

共有 条评论

相关资源