摘要: 1.在pom.xml文件里的properties定义一个参数 2.定义完了,在application.properties中获取这个值 server.port=8090 #@pom.xml中的一个参数名@ war.name= @war.name@ api.path= https://www.baid 阅读全文
posted @ 2018-03-21 17:55 qwer78 阅读(69) 评论(0) 推荐(0)
摘要: 防止子线程没执行结束主线程就释放了 1.配置加上 #设置线程池的线程数量 threads.number=4 2.设置一个定长线程池 package cc.datebook.config; import org.springframework.beans.factory.annotation.Valu 阅读全文
posted @ 2018-03-21 14:41 qwer78 阅读(105) 评论(0) 推荐(0)