基础工程搭建
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package top.fjy8018.elasticsearch;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@SpringBootApplication
|
||||
@RestController
|
||||
public class ElasticsearchApplication {
|
||||
|
||||
@GetMapping("/")
|
||||
public String index(){
|
||||
return "index";
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(ElasticsearchApplication.class, args);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package top.fjy8018.elasticsearch.configeration;
|
||||
|
||||
/**
|
||||
* @author F嘉阳
|
||||
* @date 2018-05-19 12:22
|
||||
*/
|
||||
public class ElasticSearchConfiger {
|
||||
|
||||
}
|
||||
0
src/main/resources/application.properties
Normal file
0
src/main/resources/application.properties
Normal file
7
src/main/resources/log4j2.properties
Normal file
7
src/main/resources/log4j2.properties
Normal file
@@ -0,0 +1,7 @@
|
||||
appender.console.type = Console
|
||||
appender.console.name = Console
|
||||
appender.console.layout.type = PatternLayout
|
||||
appender.console.layout.pattern = [%t] %-5p $c -%m%n
|
||||
|
||||
rootLogger.level = info
|
||||
rootLogger.appenderRef.console.ref = console
|
||||
Reference in New Issue
Block a user