2ff53a17ca4658fc3b9e5b372c45d1562e4c9be2
jar 실행 예
java -jar HttpMockServer.jar
java -jar HttpMockServer.jar --logging.level.root=info --server.port.http=9090 --spring.jpa.show-sql=false
빠른 시작
-
db 폴더를 생성하고 apidb.mv.db 파일을 db 폴더에 복사
-
다음 명령을 실행
./gradlew bootRun
실행화면
? HttpMockServer git:(master) ? ./gradlew bootRun
> Task :bootRun
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.4.4)
2021-07-23 12:54:37.430 INFO 28195 --- [ main] c.e.h.HttpmockserverApplication : Starting HttpmockserverApplication using Java 1.8.0_271 on yultae-u with PID 28195 (/data/workspaces/mock2/HttpMockServer/build/classes/java/main started by yultae in /data/workspaces/mock2/HttpMockServer)
2021-07-23 12:54:37.431 INFO 28195 --- [ main] c.e.h.HttpmockserverApplication : No active profile set, falling back to default profiles: default
2021-07-23 12:54:37.910 INFO 28195 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2021-07-23 12:54:37.942 INFO 28195 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 27 ms. Found 2 JPA repository interfaces.
2021-07-23 12:54:38.256 INFO 28195 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 38443 (https) 38080 (http)
2021-07-23 12:54:38.268 INFO 28195 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2021-07-23 12:54:38.268 INFO 28195 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.44]
2021-07-23 12:54:38.305 INFO 28195 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2021-07-23 12:54:38.305 INFO 28195 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 760 ms
2021-07-23 12:54:38.333 INFO 28195 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
2021-07-23 12:54:38.403 INFO 28195 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
2021-07-23 12:54:38.407 INFO 28195 --- [ main] o.s.b.a.h2.H2ConsoleAutoConfiguration : H2 console available at '/h2-console'. Database available at 'jdbc:h2:file:./db/apidb'
2021-07-23 12:54:38.494 INFO 28195 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default]
2021-07-23 12:54:38.515 INFO 28195 --- [ main] org.hibernate.Version : HHH000412: Hibernate ORM core version 5.4.29.Final
2021-07-23 12:54:38.572 INFO 28195 --- [ main] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
2021-07-23 12:54:38.617 INFO 28195 --- [ main] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
Hibernate: alter table api_info drop constraint if exists UKc1jk4v6r8tqu7tlinfqsmx7o
Hibernate: alter table api_info add constraint UKc1jk4v6r8tqu7tlinfqsmx7o unique (url, service_value)
Hibernate: alter table api_service_key drop constraint if exists UKqntc9y3urphwjcwp4a0rcxx3q
Hibernate: alter table api_service_key add constraint UKqntc9y3urphwjcwp4a0rcxx3q unique (url)
2021-07-23 12:54:38.962 INFO 28195 --- [ main] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
2021-07-23 12:54:38.967 INFO 28195 --- [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2021-07-23 12:54:39.198 WARN 28195 --- [ main] JpaBaseConfiguration$JpaWebConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
2021-07-23 12:54:39.273 INFO 28195 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
2021-07-23 12:54:39.320 INFO 28195 --- [ main] o.s.b.a.w.s.WelcomePageHandlerMapping : Adding welcome page template: index
2021-07-23 12:54:39.778 INFO 28195 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 38443 (https) 38080 (http) with context path ''
2021-07-23 12:54:39.785 INFO 28195 --- [ main] c.e.h.HttpmockserverApplication : Started HttpmockserverApplication in 2.594 seconds (JVM running for 2.81)
<==========---> 80% EXECUTING [39s]
> :bootRun
- 다음 url 로 접속: http://localhost:38080
SWAGGER 추가
Description
Languages
JavaScript
97.3%
Java
1.2%
CSS
0.9%
HTML
0.6%
