资源简介

基于知识图谱的问答系统 -- SpringBoot整合Neo4j开发问答系统 PS:资源的下载积分会随下载次数自动增加越来越多,如果您积分不够的话可以私信我重置下载分数

资源截图

代码片段和文件信息

package com.hhr;

import org.apache.catalina.connector.Connector;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.embedded.tomcat.TomcatConnectorCustomizer;
import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.Bean;

/**
 * SpringBoot启动类
 * @SpringBootApplication
 * 等价于
 * @Configuration
 * @EnableAutoConfiguration
 * @ComponentScan
 */
@SpringBootApplication
public class Application extends SpringBootServletInitializer {

/**
 * SpringBoot的启动类
 * @param args
 */
public static void main(String[] args) {
SpringApplication.run(Application.class args);

//指定jre系统属性,允许 特殊符号 | 做入参   详情见 tomcat  HttpParser类
//System.setProperty(“tomcat.util.http.parser.HttpParser.requestTargetAllow““|“);
}

/**
 * 打包成war
 * 需要一个ServletInitializer类
 * @param application
 * @return
 */
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
return application.sources(Application.class);
}

/**
 * 配置修改
 * 请求路径容纳特殊字符
 * @return
 */
@Bean
public TomcatServletWebServerFactory webServerFactory() {
TomcatServletWebServerFactory factory = new TomcatServletWebServerFactory();
factory.addConnectorCustomizers(new TomcatConnectorCustomizer() {
@Override
public void customize(Connector connector) {
connector.setProperty(“relaxedPathChars“ “\“<>[\\]^‘{|}()=“);
connector.setProperty(“relaxedQueryChars“ “\“<>[\\]^‘{|}()=“);
}
});
return factory;
}
}

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

     文件          5  2020-06-09 12:49  SpringBoot-Neo4j-KBQA\.git\COMMIT_EDITMSG

     文件        315  2020-04-28 17:13  SpringBoot-Neo4j-KBQA\.git\config

     文件         43  2020-04-28 17:08  SpringBoot-Neo4j-KBQA\.git\description

     文件        110  2020-06-09 12:49  SpringBoot-Neo4j-KBQA\.git\FETCH_HEAD

     文件         23  2020-04-28 17:08  SpringBoot-Neo4j-KBQA\.git\HEAD

     文件        478  2020-04-28 17:08  SpringBoot-Neo4j-KBQA\.git\hooks\applypatch-msg.sample

     文件        896  2020-04-28 17:08  SpringBoot-Neo4j-KBQA\.git\hooks\commit-msg.sample

     文件       3327  2020-04-28 17:08  SpringBoot-Neo4j-KBQA\.git\hooks\fsmonitor-watchman.sample

     文件        189  2020-04-28 17:08  SpringBoot-Neo4j-KBQA\.git\hooks\post-update.sample

     文件        424  2020-04-28 17:08  SpringBoot-Neo4j-KBQA\.git\hooks\pre-applypatch.sample

     文件       1638  2020-04-28 17:08  SpringBoot-Neo4j-KBQA\.git\hooks\pre-commit.sample

     文件       1348  2020-04-28 17:08  SpringBoot-Neo4j-KBQA\.git\hooks\pre-push.sample

     文件       4898  2020-04-28 17:08  SpringBoot-Neo4j-KBQA\.git\hooks\pre-rebase.sample

     文件        544  2020-04-28 17:08  SpringBoot-Neo4j-KBQA\.git\hooks\pre-receive.sample

     文件       1492  2020-04-28 17:08  SpringBoot-Neo4j-KBQA\.git\hooks\prepare-commit-msg.sample

     文件       3610  2020-04-28 17:08  SpringBoot-Neo4j-KBQA\.git\hooks\update.sample

     文件       3153  2020-06-09 12:49  SpringBoot-Neo4j-KBQA\.git\index

     文件        240  2020-04-28 17:08  SpringBoot-Neo4j-KBQA\.git\info\exclude

     文件       2859  2020-06-09 12:49  SpringBoot-Neo4j-KBQA\.git\logs\HEAD

     文件       2859  2020-06-09 12:49  SpringBoot-Neo4j-KBQA\.git\logs\refs\heads\master

     文件       2736  2020-06-09 12:49  SpringBoot-Neo4j-KBQA\.git\logs\refs\remotes\origin\master

     文件      27305  2020-04-28 17:43  SpringBoot-Neo4j-KBQA\.git\objects\00\bf2cf589682c05bb47db89d97fe9a6e9b0751a

     文件         45  2020-05-24 22:14  SpringBoot-Neo4j-KBQA\.git\objects\00\c026d256a699acf00a542d08d0fc0610b3ebff

     文件        318  2020-05-20 17:18  SpringBoot-Neo4j-KBQA\.git\objects\01\2423087bbb34a53c277b0f483b8c4503b41ff3

     文件         46  2020-05-28 12:31  SpringBoot-Neo4j-KBQA\.git\objects\01\4674d5608a166d53e75ffda003faf676a97d06

     文件         56  2020-05-27 15:43  SpringBoot-Neo4j-KBQA\.git\objects\01\c7e877eb32f0a11adcf4386d74cc80058bb77f

     文件         83  2020-04-28 17:43  SpringBoot-Neo4j-KBQA\.git\objects\02\51304c239f8e0c58ad5811a0b1431f56947e04

     文件         57  2020-05-27 15:43  SpringBoot-Neo4j-KBQA\.git\objects\02\651c880cd6dbee33cd0b52aa5cdefa0d177808

     文件      10584  2020-05-27 15:43  SpringBoot-Neo4j-KBQA\.git\objects\02\9d0b62dc84c548b52fefbd9522be79285db978

     文件        102  2020-05-27 15:43  SpringBoot-Neo4j-KBQA\.git\objects\02\9d4778bc5325c51b2f8d26174c6ed82046d893

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

评论

共有 条评论