上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 37 下一页
摘要: 1、总览 2、代码 1)、pom.xml 这里注意:springboot 2.2.0以后默认的freemarker文件后缀为:ftlh。本例用的是2.2.1,所以后缀为ftlh <dependencies> <dependency> <groupId>org.springframework.boot 阅读全文
posted @ 2019-11-16 22:59 遥远2 阅读(401) 评论(0) 推荐(0) 编辑
摘要: 1、总览 2、代码 1)、pom.xml <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </depend 阅读全文
posted @ 2019-11-16 20:22 遥远2 阅读(833) 评论(0) 推荐(0) 编辑
摘要: 1、总览 2、代码 1)、pom.xml <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </depend 阅读全文
posted @ 2019-11-16 19:41 遥远2 阅读(821) 评论(0) 推荐(0) 编辑
摘要: 1、总览 2、application.properties 3、controller 4、error.jsp 因为spring boot 提供了一个默认的mapping:/error,因此,我们起的错误jsp页面的文件名为error.jsp 5、执行 当执行http://localhost:8080 阅读全文
posted @ 2019-11-15 17:32 遥远2 阅读(699) 评论(0) 推荐(0) 编辑
摘要: 当访问不存在的页面时报错: 如何关闭它?有2种方法, 方法1: 方法2:在MyApplication上边的注解@SpringBootApplication中加入:exclude = ErrorMvcAutoConfiguration.class,即: 当访问不存在资源时, 方法1返回: 方法2返回: 阅读全文
posted @ 2019-11-15 16:44 遥远2 阅读(1819) 评论(0) 推荐(0) 编辑
摘要: 1、 输出:from my bean, date: Fri Nov 15 14:16:37 GMT+08:00 2019 2、 输出:from MyBean myStringValue 3、 输出:from other bean 4、 输出:from MyBean: my string proper 阅读全文
posted @ 2019-11-15 14:25 遥远2 阅读(328) 评论(0) 推荐(0) 编辑
摘要: select TABLE_SCHEMA, concat(truncate(sum(data_length)/1024/1024,2),'MB') as data_size, concat(truncate(sum(index_length)/1024/1024,2),'MB') as index_size from information_schema.tables group by TABLE_ 阅读全文
posted @ 2019-11-14 14:59 遥远2 阅读(2263) 评论(0) 推荐(0) 编辑
摘要: 1、MytestApplication 2、StartupOrder 输出日志: 13:57:38.764 DEBUG | Loading source class com.gomepay.MytestApplication13:57:38.813 DEBUG | Activated activeP 阅读全文
posted @ 2019-11-06 15:04 遥远2 阅读(2394) 评论(0) 推荐(0) 编辑
摘要: java8:https://www.oracle.com/technetwork/java/javase/8-whats-new-2157071.html 1)、lamda 2)、函数式接口 3)、接口默认方法和静态方法 Java 8 新增了接口的默认实现,通过 default 关键字表示。同时也可 阅读全文
posted @ 2019-11-05 15:21 遥远2 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 优先级: 使用于 示例1:by name 示例2:by type 只需修改ResourceTest.java中的代码: 将@Resource中的name=namedFile去掉,也能成功。因为,上例中File类型的对象只有nameFile,所以可以使用by type。 示例3:by qualifie 阅读全文
posted @ 2019-11-02 13:05 遥远2 阅读(2753) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 37 下一页