package com.aruisi.controller;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class HelloWord {
protected static Logger logger=LoggerFactory.getLogger(HelloWord.class);
@RequestMapping("/")
public String helloWorld(){
logger.debug("访问hello");
return "hello world!";
}
@RequestMapping("/hello/{name}")
public String helloName(@PathVariable String name){
logger.debug("访问helloName,Name={}",name);
return "hello "+name;
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
springBoot输出日志配置
共27个文件
prefs:6个
xml:5个
lst:3个
2星 需积分: 39 45 下载量 55 浏览量
2017-09-06
18:05:32
上传
评论
收藏 19KB ZIP 举报
温馨提示
maven工程搭建,springboot输出日志配置,maven工程搭建,springboot输出日志配置,maven工程搭建,springboot输出日志配置
资源推荐
资源详情
资源评论
收起资源包目录
SpringBoot.zip (27个子文件)
SpringBoot
.project 1KB
log
base.log 2KB
src
test
resources
java
main
webapp
resources
logback.xml 1KB
java
com
aruisi
controller
App.java 304B
HelloWord.java 766B
target
m2e-wtp
web-resources
META-INF
MANIFEST.MF 281B
maven
com.arusi.innofarm
SpringBoot
pom.properties 227B
pom.xml 1KB
maven-status
maven-compiler-plugin
testCompile
default-testCompile
inputFiles.lst 0B
compile
default-compile
createdFiles.lst 0B
inputFiles.lst 144B
generated-sources
annotations
classes
com
aruisi
controller
HelloWord.class 1KB
App.class 678B
logback.xml 1KB
test-classes
.settings
org.eclipse.wst.jsdt.ui.superType.container 49B
org.eclipse.wst.common.project.facet.core.xml 252B
org.eclipse.m2e.core.prefs 90B
org.eclipse.ltk.core.refactoring.prefs 106B
org.eclipse.wst.ws.service.policy.prefs 87B
org.eclipse.jdt.core.prefs 430B
org.eclipse.wst.validation.prefs 50B
org.eclipse.wst.jsdt.ui.superType.name 6B
org.eclipse.core.resources.prefs 57B
org.eclipse.wst.common.component 671B
.jsdtscope 575B
pom.xml 1KB
.classpath 1KB
共 27 条
- 1
资源评论
- qq_348969042019-09-23没什么价值
jingshenbusi
- 粉丝: 12
- 资源: 15
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功