06 2019 档案

摘要:package annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; impor 阅读全文
posted @ 2019-06-28 16:41 jentary 阅读(141) 评论(0) 推荐(0) 编辑
摘要:1.遍历 <#list animals as being><br> <li>${being.name} for ${being.price} Euros<br> <#list> freemarker的基本语法及入门基础一、freemarker模板文件(*.ftl)的基本组成部分 1. 文本:直接输出 阅读全文
posted @ 2019-06-28 09:28 jentary 阅读(227) 评论(0) 推荐(0) 编辑
摘要:1 阅读全文
posted @ 2019-06-27 21:45 jentary 阅读(149) 评论(0) 推荐(0) 编辑
摘要:一、logback的介绍 Logback是由log4j创始人设计的另一个开源日志组件,官方网站: http://logback.qos.ch。它当前分为下面下个模块: logback-core:其它两个模块的基础模块 logback-classic:它是log4j的一个改良版本,同时它完整实现了sl 阅读全文
posted @ 2019-06-21 14:12 jentary 阅读(171) 评论(0) 推荐(0) 编辑
摘要:在Spring Boot中多环境配置文件名需要满足application-{profile}.properties的格式,其中{profile}对应你的环境标识,比如: application-dev.properties:开发环境 application-prod.properties:生产环境 阅读全文
posted @ 2019-06-18 09:39 jentary 阅读(163) 评论(0) 推荐(0) 编辑
摘要:ConditionalOnClass :用于指定在Classpath下拥有某些Class时才生效 ConditionalOnMissingClass :用于指定在Classpath下不存在某些Class时才生效 ConditionalOnBean :用于指定在bean容器中存在某些bean时生效 C 阅读全文
posted @ 2019-06-18 09:18 jentary 阅读(163) 评论(0) 推荐(0) 编辑
摘要:config.name=configname config.password=configpassword @Configuration @ConfigurationProperties(prefix = "config") @PropertySource("classpath:/config.pr 阅读全文
posted @ 2019-06-17 10:55 jentary 阅读(178) 评论(0) 推荐(0) 编辑
摘要:1.action 乱码 <constant name="struts.i18n.encoding" value="GBK"/> 2.action 获取上下文 3.struts2文件下载 struts2返回json struts2 返回freemarker struts2 重定向 struts2 重定 阅读全文
posted @ 2019-06-05 09:12 jentary 阅读(123) 评论(0) 推荐(0) 编辑