posted @ 2018-04-29 03:26 水狼渊 阅读(344) 评论(0) 推荐(0)
摘要:
自定义properties文件配置:src/main/resources/conf/boot.properties @Value注解调用自定义properties属性值: @ConfigurationProperties 配置properties属性对象: 阅读全文
摘要:
application.properties 配置logback.xml 路径注:如果logback.xml在默认的 src/main/resources 目录下则不需要配置application.properties路径 logging.config=classpath:log/logback.x 阅读全文
posted @ 2018-04-28 16:09 水狼渊 阅读(4557) 评论(0) 推荐(0)
摘要:
端口号、项目名称 application.properties: server.port=8888 server.context-path=/start 日志相关的配置 # 自定义日志配置路径 logging.config=classpath:logging-config.xml # 同时使用,则只 阅读全文
posted @ 2018-04-28 15:13 水狼渊 阅读(2112) 评论(0) 推荐(0)
摘要:
https://blog.csdn.net/pyxly1314/article/details/51802652 阅读全文
posted @ 2018-04-20 12:49 水狼渊 阅读(123) 评论(0) 推荐(0)
摘要:
通过Spring Boot【1.5.11.RELEASE】 官方文档进行学习,并记录一点一滴的成长。 @RestController class ThisWillActuallyRun { @RequestMapping("/") String home() { "Hello World!" } } 阅读全文
posted @ 2018-04-07 15:14 水狼渊 阅读(139) 评论(0) 推荐(0)
摘要:
强制转换分两种,一种是基础类型强制转换(Type Conversion),一种是引用类型强制转换(Class Casting); 阅读全文
posted @ 2018-04-07 00:02 水狼渊 阅读(119) 评论(0) 推荐(0)
摘要:
Byte 类字节,属于Number。 1 public final class Byte extends Number implements Comparable<Byte> { 2 3 /** 4 * A constant holding the minimum value a {@code by 阅读全文
posted @ 2018-04-06 23:45 水狼渊 阅读(514) 评论(0) 推荐(0)
摘要:
Boolean源码比较简单。 1 public final class Boolean implements java.io.Serializable, 2 Comparable<Boolean> 3 { 4 /** 5 * The {@code Boolean} object correspond 阅读全文
posted @ 2018-04-06 23:31 水狼渊 阅读(712) 评论(1) 推荐(0)
摘要:
总体阅读了Long的源码,基本跟Integer类类似,所以特别全部贴出源码,直接注释进行理解。 1 // final修饰符 2 public final class Long extends Number implements Comparable<Long> { 3 /** 4 * A const 阅读全文
posted @ 2018-04-06 21:35 水狼渊 阅读(768) 评论(0) 推荐(0)
浙公网安备 33010602011771号