Resolve conflict

pull/167/head
johnniang 2019-05-25 06:56:01 +08:00
commit 0ebde83696
2 changed files with 27 additions and 2 deletions

View File

@ -70,8 +70,8 @@ public class ContentJournalController {
*/ */
@GetMapping(value = "page/{page}") @GetMapping(value = "page/{page}")
public String journals(Model model, public String journals(Model model,
@PathVariable(value = "page") Integer page, @PathVariable(value = "page") Integer page,
@SortDefault(sort = "createTime", direction = DESC) Sort sort) { @SortDefault(sort = "createTime", direction = DESC) Sort sort) {
log.debug("Requested journal page, sort info: [{}]", sort); log.debug("Requested journal page, sort info: [{}]", sort);
int pageSize = optionService.getPostPageSize(); int pageSize = optionService.getPostPageSize();

View File

@ -0,0 +1,25 @@
server:
port: 8090
spring:
datasource:
type: com.zaxxer.hikari.HikariDataSource
# H2Database 配置,如果你需要使用 MySQL请注释掉该配置并取消注释 MySQL 的配置。
driver-class-name: org.h2.Driver
url: jdbc:h2:file:~/.halo/db/halo
username: admin
password: 123456
# MySql 配置,如果你需要使用 H2Database请注释掉该配置并取消注释上方 H2Database 的配置。
# driver-class-name: com.mysql.cj.jdbc.Driver
# url: jdbc:mysql://127.0.0.1:3306/halodb?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
# username: root
# password: 123456
# H2Database 的控制台相关配置,如果你使用的是 MySQL ,请注释掉下方内容。
h2:
console:
settings:
web-allow-others: false
path: /h2-console
enabled: false