我这边是没有问题的。
~/.halo/application.yaml:
server:
port: 8090
# Response data gzip.
compression:
enabled: false
spring:
datasource:
# H2 database configuration.
driver-class-name: org.h2.Driver
url: jdbc:h2:file:~/.halo/db/halo
username: admin
password: 123456
# MySQL database configuration.
# driver-class-name: com.mysql.cj.jdbc.Driver
# url: jdbc:mysql://127.0.0.1:3306/halodb?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
# username: root
# password: 123456
# H2 database console configuration.
h2:
console:
settings:
web-allow-others: true
path: /h2-console
enabled: true
halo:
# Your admin client path is https://your-domain/{admin-path}
admin-path: admin
# memory or level
cache: memory
__ __ __
/ / / /___ _/ /___
/ /_/ / __ `/ / __ \
/ __ / /_/ / / /_/ /
/_/ /_/\__,_/_/\____/
Version: 1.4.7
2021-03-24 14:48:17.333 INFO 20843 --- [ main] run.halo.app.Application : Starting Application v1.4.7 using Java 15.0.2 on yunleme-mac with PID 20843 (/Users/ryanwang/Downloads/halo-1.4.7.jar started by ryanwang in /Users/ryanwang/Downloads)
2021-03-24 14:48:17.346 INFO 20843 --- [ main] run.halo.app.Application : No active profile set, falling back to default profiles: default
2021-03-24 14:48:18.664 INFO 20843 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2021-03-24 14:48:18.892 INFO 20843 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 211 ms. Found 22 JPA repository interfaces.
2021-03-24 14:48:19.866 INFO 20843 --- [ main] org.eclipse.jetty.util.log : Logging initialized @3944ms to org.eclipse.jetty.util.log.Slf4jLog
2021-03-24 14:48:20.086 INFO 20843 --- [ main] o.s.b.w.e.j.JettyServletWebServerFactory : Server initialized with port: 8090
2021-03-24 14:48:20.095 INFO 20843 --- [ main] org.eclipse.jetty.server.Server : jetty-9.4.36.v20210114; built: 2021-01-14T16:44:28.689Z; git: 238ec6997c7806b055319a6d11f8ae7564adc0de; jvm 15.0.2+7
2021-03-24 14:48:20.119 INFO 20843 --- [ main] o.e.j.s.h.ContextHandler.application : Initializing Spring embedded WebApplicationContext
2021-03-24 14:48:20.119 INFO 20843 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 2696 ms
2021-03-24 14:48:20.293 INFO 20843 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
2021-03-24 14:48:20.540 INFO 20843 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
2021-03-24 14:48:20.546 INFO 20843 --- [ main] o.s.b.a.h2.H2ConsoleAutoConfiguration : H2 console available at '/h2-console'. Database available at 'jdbc:h2:file:~/.halo/db/halo'
2021-03-24 14:48:20.769 INFO 20843 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default]
2021-03-24 14:48:20.866 INFO 20843 --- [ main] org.hibernate.Version : HHH000412: Hibernate ORM core version 5.4.28.Final
2021-03-24 14:48:21.113 INFO 20843 --- [ main] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
2021-03-24 14:48:21.300 INFO 20843 --- [ main] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
2021-03-24 14:48:22.467 INFO 20843 --- [ main] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
2021-03-24 14:48:22.477 INFO 20843 --- [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2021-03-24 14:48:22.816 INFO 20843 --- [ main] run.halo.app.config.HaloConfiguration : Halo cache store load impl : [class run.halo.app.cache.InMemoryCacheStore]
2021-03-24 14:48:23.187 INFO 20843 --- [ main] org.eclipse.jetty.server.session : DefaultSessionIdManager workerName=node0
2021-03-24 14:48:23.188 INFO 20843 --- [ main] org.eclipse.jetty.server.session : No SessionScavenger set, using defaults
2021-03-24 14:48:23.189 INFO 20843 --- [ main] org.eclipse.jetty.server.session : node0 Scavenging every 600000ms
2021-03-24 14:48:23.202 INFO 20843 --- [ main] o.e.jetty.server.handler.ContextHandler : Started o.s.b.w.e.j.JettyEmbeddedWebAppContext@3b5a19ed{application,/,[file:///private/var/folders/q3/bqh13zl16y18k7jny_6xsnl40000gn/T/jetty-docbase.8090.2700539819586145078/, jar:file:/Users/ryanwang/Downloads/halo-1.4.7.jar!/BOOT-INF/lib/springfox-swagger-ui-3.0.0.jar!/META-INF/resources],AVAILABLE}
2021-03-24 14:48:23.202 INFO 20843 --- [ main] org.eclipse.jetty.server.Server : Started @7281ms
2021-03-24 14:48:25.220 INFO 20843 --- [ main] run.halo.app.handler.file.FileHandlers : Registered 9 file handler(s)
2021-03-24 14:48:25.686 INFO 20843 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
2021-03-24 14:48:26.157 INFO 20843 --- [ main] o.s.s.c.ThreadPoolTaskScheduler : Initializing ExecutorService 'taskScheduler'
2021-03-24 14:48:26.174 INFO 20843 --- [ main] o.s.b.a.e.web.EndpointLinksResolver : Exposing 4 endpoint(s) beneath base path '/api/admin/actuator'
2021-03-24 14:48:26.222 INFO 20843 --- [ main] o.e.j.s.h.ContextHandler.application : Initializing Spring DispatcherServlet 'dispatcherServlet'
2021-03-24 14:48:26.222 INFO 20843 --- [ main] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet'
2021-03-24 14:48:26.223 INFO 20843 --- [ main] o.s.web.servlet.DispatcherServlet : Completed initialization in 1 ms
2021-03-24 14:48:26.237 INFO 20843 --- [ main] o.e.jetty.server.AbstractConnector : Started ServerConnector@2102a4d5{HTTP/1.1, (http/1.1)}{0.0.0.0:8090}
2021-03-24 14:48:26.238 INFO 20843 --- [ main] o.s.b.web.embedded.jetty.JettyWebServer : Jetty started on port(s) 8090 (http/1.1) with context path '/'
2021-03-24 14:48:26.253 INFO 20843 --- [ main] run.halo.app.Application : Started Application in 9.697 seconds (JVM running for 10.332)
2021-03-24 14:48:26.254 INFO 20843 --- [ main] run.halo.app.listener.StartedListener : Starting migrate database...
2021-03-24 14:48:26.315 INFO 20843 --- [ main] o.f.c.internal.license.VersionPrinter : Flyway Community Edition 7.5.1 by Redgate
2021-03-24 14:48:26.331 INFO 20843 --- [ main] o.f.c.i.database.base.DatabaseType : Database: jdbc:h2:file:~/.halo/db/halo (H2 1.4)
2021-03-24 14:48:26.359 INFO 20843 --- [ main] o.f.c.i.s.JdbcTableSchemaHistory : Repair of failed migration in Schema History table "PUBLIC"."flyway_schema_history" not necessary. No failed migration detected.
2021-03-24 14:48:26.372 INFO 20843 --- [ main] o.f.core.internal.command.DbRepair : Successfully repaired schema history table "PUBLIC"."flyway_schema_history" (execution time 00:00.021s).
2021-03-24 14:48:26.374 INFO 20843 --- [ main] o.f.c.internal.license.VersionPrinter : Flyway Community Edition 7.5.1 by Redgate
2021-03-24 14:48:26.386 INFO 20843 --- [ main] o.f.core.internal.command.DbValidate : Successfully validated 4 migrations (execution time 00:00.005s)
2021-03-24 14:48:26.396 INFO 20843 --- [ main] o.f.core.internal.command.DbMigrate : Current version of schema "PUBLIC": 4
2021-03-24 14:48:26.398 INFO 20843 --- [ main] o.f.core.internal.command.DbMigrate : Schema "PUBLIC" is up to date. No migration necessary.
2021-03-24 14:48:26.399 INFO 20843 --- [ main] run.halo.app.listener.StartedListener : Migrate database succeed.
2021-03-24 14:48:26.469 INFO 20843 --- [ main] run.halo.app.listener.StartedListener : Halo started at http://127.0.0.1:8090
2021-03-24 14:48:26.469 INFO 20843 --- [ main] run.halo.app.listener.StartedListener : Halo admin started at http://127.0.0.1:8090/admin
2021-03-24 14:48:26.469 INFO 20843 --- [ main] run.halo.app.listener.StartedListener : Halo has started successfully!