Guest User

Untitled

a guest
Jan 5th, 2018
647
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.60 KB | None | 0 0
  1. package com.oesia.mako
  2.  
  3. import org.springframework.boot.SpringApplication
  4. import org.springframework.boot.autoconfigure.SpringBootApplication
  5.  
  6. @SpringBootApplication
  7. class MakoApplication
  8.  
  9. fun main(args: Array<String>) {
  10. SpringApplication.run(MakoApplication::class.java, *args)
  11. }
  12.  
  13. package com.oesia.mako.rrhh.persona.delivery.rest
  14.  
  15. import io.swagger.annotations.Api
  16. import org.springframework.web.bind.annotation.GetMapping
  17. import org.springframework.web.bind.annotation.RequestMapping
  18. import org.springframework.web.bind.annotation.RequestParam
  19. import org.springframework.web.bind.annotation.RestController
  20. import javax.inject.Inject
  21.  
  22. import com.oesia.mako.commons.dto.Page
  23. import com.oesia.mako.rrhh.persona.domain.boundary.provide.PersonaCriteriaRequestModel
  24. import com.oesia.mako.rrhh.persona.domain.boundary.provide.PersonaRequestModel
  25. import com.oesia.mako.rrhh.persona.domain.boundary.provide.PersonaResponseModel
  26. import com.oesia.mako.rrhh.persona.domain.entities.Persona
  27. import com.oesia.mako.rrhh.persona.infrastructure.di.PersonaUseCaseFactoryDi
  28. import org.springframework.http.ResponseEntity
  29. import org.springframework.web.bind.annotation.*
  30.  
  31. @RestController
  32. @RequestMapping("/api/rest/personas")
  33. @Api(value = "/api/rest/personas")
  34. class PersonaRest(@Inject var useCaseFactory: PersonaUseCaseFactoryDi) {
  35.  
  36. init {
  37. this.useCaseFactory = useCaseFactory
  38. }
  39.  
  40. @GetMapping("/v1/{id}")
  41. fun findById(@PathVariable(value = "id") id: String) : ResponseEntity<Persona> {
  42. val presenter = PersonaRestPresenter()
  43. val findByIdCommand = useCaseFactory.createFindByIdCommand(presenter, id)
  44. findByIdCommand.execute()
  45. return presenter.generateResponse()
  46. }
  47.  
  48. }
  49.  
  50. spring.datasource.url=jdbc:postgresql://localhost:5432/mako
  51. spring.datasource.username=mako
  52. spring.datasource.password=mako
  53. spring.datasource.driver-class-name=org.postgresql.Driver
  54. server.port=8080
  55. server.http.port=8080
  56. server.https.port=8443
  57. server.servlet.context-path=/mako
  58. server.servlet.path=/mako
  59. springfox.documentation.swagger.v2.path=/api/rest/swagger.json
  60. # Charset of HTTP requests and responses. Added to the "Content-Type" header if not set explicitly.
  61. spring.http.encoding.charset=UTF-8
  62. # Enable http encoding support.
  63. spring.http.encoding.enabled=true
  64. # Force the encoding to the configured charset on HTTP requests and responses.
  65. spring.http.encoding.force=true
  66. # Jackson
  67. spring.jackson.date-format=yyyy-MM-dd HH:mm:ss
  68. spring.jackson.deserialization.adjust_dates_to_context_time_zone=false
  69. # Mail
  70. spring.mail.host=smtp.server.com
  71. spring.mail.port=25
  72. spring.mail.username=test
  73. spring.mail.password=test
  74. spring.mail.properties.mail.smtp.starttls.enable=true
  75. # Application
  76. token.expiration.days=30
  77. sign.up.code.expiration.hours=24
  78. mail.messages.from=pr@amb.cat
  79.  
  80. buildscript {
  81. ext {
  82. kotlinVersion = '1.2.10'
  83. springBootVersion = '2.0.0.M7'
  84. springfoxVersion = '2.7.0'
  85. swaggerVersion = '1.5.16'
  86. myBatisVersion = '3.4.5'
  87. injectVersion = '1'
  88. }
  89. repositories {
  90. mavenCentral()
  91. maven { url "https://repo.spring.io/snapshot" }
  92. maven { url "https://repo.spring.io/milestone" }
  93. }
  94. dependencies {
  95. classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
  96. classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}")
  97. classpath("org.jetbrains.kotlin:kotlin-allopen:${kotlinVersion}")
  98. }
  99. }
  100.  
  101. apply plugin: 'kotlin'
  102. apply plugin: 'kotlin-spring'
  103. apply plugin: 'idea'
  104. apply plugin: 'org.springframework.boot'
  105. apply plugin: 'io.spring.dependency-management'
  106.  
  107. group = 'com.oesia'
  108. version = '0.0.1-SNAPSHOT'
  109. sourceCompatibility = 1.8
  110. compileKotlin {
  111. kotlinOptions.jvmTarget = "1.8"
  112. }
  113. compileTestKotlin {
  114. kotlinOptions.jvmTarget = "1.8"
  115. }
  116.  
  117. repositories {
  118. mavenCentral()
  119. maven { url "https://repo.spring.io/snapshot" }
  120. maven { url "https://repo.spring.io/milestone" }
  121. }
  122.  
  123. sourceSets {
  124. main {
  125. kotlin {
  126. srcDir 'src/main/kotlin'
  127. srcDir 'src/main/customized/kotlin'
  128. srcDir 'src/main/generated/kotlin'
  129. }
  130. }
  131. main {
  132. resources {
  133. srcDir 'src/main/resources'
  134. srcDir 'src/main/customized/resources'
  135. srcDir 'src/main/generated/resources'
  136. }
  137. }
  138. test {
  139. kotlin {
  140. srcDir 'src/test/kotlin'
  141. }
  142. }
  143. }
  144.  
  145. dependencies {
  146. compile("javax.inject:javax.inject:${injectVersion}")
  147. compile("io.swagger:swagger-annotations:${swaggerVersion}")
  148. compile("io.swagger:swagger-core:${swaggerVersion}")
  149. compile("io.springfox:springfox-swagger2:${springfoxVersion}")
  150. compile("io.springfox:springfox-swagger-ui:${springfoxVersion}")
  151. compile('org.springframework.boot:spring-boot-starter-hateoas')
  152. compile("org.springframework.boot:spring-boot-starter-actuator")
  153. compile("org.springframework.boot:spring-boot-starter-jdbc")
  154. compile("org.springframework.boot:spring-boot-starter-web")
  155. // compile("org.springframework.boot:spring-boot-starter-security")
  156. compile("org.jetbrains.kotlin:kotlin-stdlib-jre8:${kotlinVersion}")
  157. compile("org.jetbrains.kotlin:kotlin-reflect:${kotlinVersion}")
  158. compile("org.mybatis:mybatis:${myBatisVersion}")
  159. runtime("org.postgresql:postgresql")
  160. testCompile("org.springframework.boot:spring-boot-starter-test")
  161. // testCompile("org.springframework.security:spring-security-test")
  162. }
  163.  
  164. Connected to the target VM, address: '127.0.0.1:60835', transport: 'socket'
  165.  
  166. . ____ _ __ _ _
  167. /\ / ___'_ __ _ _(_)_ __ __ _
  168. ( ( )___ | '_ | '_| | '_ / _` |
  169. \/ ___)| |_)| | | | | || (_| | ) ) ) )
  170. ' |____| .__|_| |_|_| |___, | / / / /
  171. =========|_|==============|___/=/_/_/_/
  172. :: Spring Boot :: (v2.0.0.M7)
  173.  
  174. 2018-01-05 14:54:34.689 INFO 4528 --- [ main] com.oesia.mako.MakoApplicationKt : Starting MakoApplicationKt on DESKTOP-52MK0P2 with PID 4528 (D:WorkspacesMako2Kotlinmakooutproductionclasses started by jagilberte in D:WorkspacesMako2Kotlinmako)
  175. 2018-01-05 14:54:34.705 INFO 4528 --- [ main] com.oesia.mako.MakoApplicationKt : No active profile set, falling back to default profiles: default
  176. 2018-01-05 14:54:35.242 INFO 4528 --- [ main] ConfigServletWebServerApplicationContext : Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@35399441: startup date [Fri Jan 05 14:54:35 CET 2018]; root of context hierarchy
  177. 2018-01-05 14:54:35.472 WARN 4528 --- [kground-preinit] o.s.h.c.j.Jackson2ObjectMapperBuilder : For Jackson Kotlin classes support please add "com.fasterxml.jackson.module:jackson-module-kotlin" to the classpath
  178. 2018-01-05 14:54:36.827 WARN 4528 --- [kground-preinit] o.s.h.c.j.Jackson2ObjectMapperBuilder : For Jackson Kotlin classes support please add "com.fasterxml.jackson.module:jackson-module-kotlin" to the classpath
  179. 2018-01-05 14:54:39.228 INFO 4528 --- [ main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
  180. 2018-01-05 14:54:39.410 INFO 4528 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$669226a4] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
  181. 2018-01-05 14:54:40.199 INFO 4528 --- [ main] o.h.v.i.engine.ValidatorFactoryImpl : HV000238: Temporal validation tolerance set to 0.
  182. 2018-01-05 14:54:41.514 INFO 4528 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)
  183. 2018-01-05 14:54:41.540 INFO 4528 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
  184. 2018-01-05 14:54:41.540 INFO 4528 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.5.23
  185. 2018-01-05 14:54:41.571 INFO 4528 --- [ost-startStop-1] o.a.catalina.core.AprLifecycleListener : The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [C:Program FilesJavajdk1.8.0_144bin;C:WINDOWSSunJavabin;C:WINDOWSsystem32;C:WINDOWS;C:Program FilesDockerDockerResourcesbin;C:Program Files (x86)Common FilesIntelShared FilescppbinIntel64;C:ProgramDataOracleJavajavapath;C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem;C:WINDOWSSystem32WindowsPowerShellv1.0;C:Program Filesapache-maven-3.5.0bin;C:Program Filesgradle-4.4.1bin;C:Program FilesSourceGearCommonDiffMerge;C:Program FilesAutoFirmaAutoFirma;C:Program FilesTortoiseSVNbin;C:UsersjagilberteAppDataLocalMicrosoftWindowsApps;C:UsersjagilberteAppDataLocalatombin;C:UsersjagilberteAppDataLocalMicrosoftWindowsApps;;C:UsersjagilberteAppDataLocalBoxBox Edit;C:Program FilesMicrosoft VS Codebin;.]
  186. 2018-01-05 14:54:41.773 INFO 4528 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/mako] : Initializing Spring embedded WebApplicationContext
  187. 2018-01-05 14:54:41.773 INFO 4528 --- [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 6539 ms
  188. 2018-01-05 14:54:42.080 WARN 4528 --- [ost-startStop-1] o.s.h.c.j.Jackson2ObjectMapperBuilder : For Jackson Kotlin classes support please add "com.fasterxml.jackson.module:jackson-module-kotlin" to the classpath
  189. 2018-01-05 14:54:42.597 INFO 4528 --- [ost-startStop-1] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/api/rest/personas/v1],methods=[POST]}" onto public org.springframework.http.ResponseEntity<com.oesia.mako.rrhh.persona.domain.boundary.provide.PersonaResponseModel> com.oesia.mako.rrhh.persona.delivery.rest.PersonaRest.update(com.oesia.mako.rrhh.persona.domain.boundary.provide.PersonaRequestModel)
  190. 2018-01-05 14:54:42.597 INFO 4528 --- [ost-startStop-1] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/api/rest/personas/v1/{id}],methods=[DELETE]}" onto public org.springframework.http.ResponseEntity<java.lang.Integer> com.oesia.mako.rrhh.persona.delivery.rest.PersonaRest.delete(java.lang.String)
  191. 2018-01-05 14:54:42.597 INFO 4528 --- [ost-startStop-1] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/api/rest/personas/v1],methods=[PUT]}" onto public org.springframework.http.ResponseEntity<com.oesia.mako.rrhh.persona.domain.boundary.provide.PersonaResponseModel> com.oesia.mako.rrhh.persona.delivery.rest.PersonaRest.insert(com.oesia.mako.rrhh.persona.domain.boundary.provide.PersonaRequestModel)
  192. 2018-01-05 14:54:42.597 INFO 4528 --- [ost-startStop-1] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/api/rest/personas/v1/{id}],methods=[GET]}" onto public org.springframework.http.ResponseEntity<com.oesia.mako.rrhh.persona.domain.entities.Persona> com.oesia.mako.rrhh.persona.delivery.rest.PersonaRest.findById(java.lang.String)
  193. 2018-01-05 14:54:42.597 INFO 4528 --- [ost-startStop-1] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/api/rest/personas/v1/findByCriteria],methods=[POST]}" onto public org.springframework.http.ResponseEntity<java.util.List<com.oesia.mako.rrhh.persona.domain.entities.Persona>> com.oesia.mako.rrhh.persona.delivery.rest.PersonaRest.findByCriteria(com.oesia.mako.rrhh.persona.domain.boundary.provide.PersonaCriteriaRequestModel)
  194. 2018-01-05 14:54:42.597 INFO 4528 --- [ost-startStop-1] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/api/rest/personas/v1/deleteByCriteria],methods=[POST]}" onto public org.springframework.http.ResponseEntity<java.lang.Integer> com.oesia.mako.rrhh.persona.delivery.rest.PersonaRest.deleteByCriteria(com.oesia.mako.rrhh.persona.domain.boundary.provide.PersonaCriteriaRequestModel)
  195. 2018-01-05 14:54:42.613 INFO 4528 --- [ost-startStop-1] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/api/rest/personas/v1/findByPageCriteria],methods=[POST]}" onto public org.springframework.http.ResponseEntity<com.oesia.mako.commons.dto.Page<com.oesia.mako.rrhh.persona.domain.entities.Persona>> com.oesia.mako.rrhh.persona.delivery.rest.PersonaRest.findByPageCriteria(com.oesia.mako.rrhh.persona.domain.boundary.provide.PersonaCriteriaRequestModel)
  196. 2018-01-05 14:54:42.628 INFO 4528 --- [ost-startStop-1] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
  197. 2018-01-05 14:54:42.628 INFO 4528 --- [ost-startStop-1] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
  198. 2018-01-05 14:54:42.808 INFO 4528 --- [ost-startStop-1] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
  199. 2018-01-05 14:54:42.808 INFO 4528 --- [ost-startStop-1] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
  200. 2018-01-05 14:54:42.918 INFO 4528 --- [ost-startStop-1] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
  201. 2018-01-05 14:54:45.429 INFO 4528 --- [ost-startStop-1] s.b.a.e.w.s.WebMvcEndpointHandlerMapping : Mapped "{[/actuator/health],methods=[GET],produces=[application/vnd.spring-boot.actuator.v2+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.web.servlet.WebMvcEndpointHandlerMapping$OperationHandler.handle(javax.servlet.http.HttpServletRequest,java.util.Map<java.lang.String, java.lang.String>)
  202. 2018-01-05 14:54:45.429 INFO 4528 --- [ost-startStop-1] s.b.a.e.w.s.WebMvcEndpointHandlerMapping : Mapped "{[/actuator/info],methods=[GET],produces=[application/vnd.spring-boot.actuator.v2+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.web.servlet.WebMvcEndpointHandlerMapping$OperationHandler.handle(javax.servlet.http.HttpServletRequest,java.util.Map<java.lang.String, java.lang.String>)
  203. 2018-01-05 14:54:45.429 INFO 4528 --- [ost-startStop-1] s.b.a.e.w.s.WebMvcEndpointHandlerMapping : Mapped "{[/actuator],methods=[GET],produces=[application/vnd.spring-boot.actuator.v2+json || application/json]}" onto private java.util.Map<java.lang.String, java.util.Map<java.lang.String, org.springframework.boot.actuate.endpoint.web.Link>> org.springframework.boot.actuate.endpoint.web.servlet.WebMvcEndpointHandlerMapping.links(javax.servlet.http.HttpServletRequest)
  204. 2018-01-05 14:54:45.582 INFO 4528 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean : Mapping servlet: 'dispatcherServlet' to [/mako/*]
  205. 2018-01-05 14:54:45.582 INFO 4528 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'webMetricsFilter' to: [/*]
  206. 2018-01-05 14:54:45.582 INFO 4528 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'characterEncodingFilter' to: [/*]
  207. 2018-01-05 14:54:45.582 INFO 4528 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
  208. 2018-01-05 14:54:45.582 INFO 4528 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'httpPutFormContentFilter' to: [/*]
  209. 2018-01-05 14:54:45.582 INFO 4528 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'requestContextFilter' to: [/*]
  210. 2018-01-05 14:54:45.582 INFO 4528 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'webRequestLoggingFilter' to: [/*]
  211. 2018-01-05 14:54:45.758 INFO 4528 --- [ main] o.s.aop.framework.CglibAopProxy : Final method [public final org.springframework.jdbc.core.namedparam.NamedParameterJdbcOperations com.oesia.mako.commons.repository.impl.RepositoryJdbc.getNamedParameterJdbcOperations()] cannot get proxied via CGLIB: Calls to this method will NOT be routed to the target instance and might lead to NPEs against uninitialized fields in the proxy instance.
  212. 2018-01-05 14:54:45.758 INFO 4528 --- [ main] o.s.aop.framework.CglibAopProxy : Final method [public final void com.oesia.mako.commons.repository.impl.RepositoryJdbc.setNamedParameterJdbcOperations(org.springframework.jdbc.core.namedparam.NamedParameterJdbcOperations)] cannot get proxied via CGLIB: Calls to this method will NOT be routed to the target instance and might lead to NPEs against uninitialized fields in the proxy instance.
  213. 2018-01-05 14:54:45.758 INFO 4528 --- [ main] o.s.aop.framework.CglibAopProxy : Final method [protected final java.sql.Connection org.springframework.jdbc.core.support.JdbcDaoSupport.getConnection() throws org.springframework.jdbc.CannotGetJdbcConnectionException] cannot get proxied via CGLIB: Calls to this method will NOT be routed to the target instance and might lead to NPEs against uninitialized fields in the proxy instance.
  214. 2018-01-05 14:54:45.758 INFO 4528 --- [ main] o.s.aop.framework.CglibAopProxy : Final method [public final org.springframework.jdbc.core.JdbcTemplate org.springframework.jdbc.core.support.JdbcDaoSupport.getJdbcTemplate()] cannot get proxied via CGLIB: Calls to this method will NOT be routed to the target instance and might lead to NPEs against uninitialized fields in the proxy instance.
  215. 2018-01-05 14:54:45.758 INFO 4528 --- [ main] o.s.aop.framework.CglibAopProxy : Final method [public final void org.springframework.jdbc.core.support.JdbcDaoSupport.setJdbcTemplate(org.springframework.jdbc.core.JdbcTemplate)] cannot get proxied via CGLIB: Calls to this method will NOT be routed to the target instance and might lead to NPEs against uninitialized fields in the proxy instance.
  216. 2018-01-05 14:54:45.758 INFO 4528 --- [ main] o.s.aop.framework.CglibAopProxy : Final method [public final void org.springframework.jdbc.core.support.JdbcDaoSupport.setDataSource(javax.sql.DataSource)] cannot get proxied via CGLIB: Calls to this method will NOT be routed to the target instance and might lead to NPEs against uninitialized fields in the proxy instance.
  217. 2018-01-05 14:54:45.758 INFO 4528 --- [ main] o.s.aop.framework.CglibAopProxy : Final method [public final javax.sql.DataSource org.springframework.jdbc.core.support.JdbcDaoSupport.getDataSource()] cannot get proxied via CGLIB: Calls to this method will NOT be routed to the target instance and might lead to NPEs against uninitialized fields in the proxy instance.
  218. 2018-01-05 14:54:45.758 INFO 4528 --- [ main] o.s.aop.framework.CglibAopProxy : Final method [protected final org.springframework.jdbc.support.SQLExceptionTranslator org.springframework.jdbc.core.support.JdbcDaoSupport.getExceptionTranslator()] cannot get proxied via CGLIB: Calls to this method will NOT be routed to the target instance and might lead to NPEs against uninitialized fields in the proxy instance.
  219. 2018-01-05 14:54:45.758 INFO 4528 --- [ main] o.s.aop.framework.CglibAopProxy : Final method [protected final void org.springframework.jdbc.core.support.JdbcDaoSupport.releaseConnection(java.sql.Connection)] cannot get proxied via CGLIB: Calls to this method will NOT be routed to the target instance and might lead to NPEs against uninitialized fields in the proxy instance.
  220. 2018-01-05 14:54:45.758 WARN 4528 --- [ main] o.s.aop.framework.CglibAopProxy : Unable to proxy interface-implementing method [public final void org.springframework.dao.support.DaoSupport.afterPropertiesSet() throws java.lang.IllegalArgumentException,org.springframework.beans.factory.BeanInitializationException] because it is marked as final: Consider using interface-based JDK proxies instead!
  221. 2018-01-05 14:54:45.773 INFO 4528 --- [ main] o.s.aop.framework.CglibAopProxy : Final method [public final void org.springframework.dao.support.DaoSupport.afterPropertiesSet() throws java.lang.IllegalArgumentException,org.springframework.beans.factory.BeanInitializationException] cannot get proxied via CGLIB: Calls to this method will NOT be routed to the target instance and might lead to NPEs against uninitialized fields in the proxy instance.
  222. 2018-01-05 14:54:45.961 INFO 4528 --- [ main] o.h.v.i.engine.ValidatorFactoryImpl : HV000238: Temporal validation tolerance set to 0.
  223. 2018-01-05 14:54:46.211 WARN 4528 --- [ main] o.s.h.c.j.Jackson2ObjectMapperBuilder : For Jackson Kotlin classes support please add "com.fasterxml.jackson.module:jackson-module-kotlin" to the classpath
  224. 2018-01-05 14:54:46.485 WARN 4528 --- [ main] o.s.h.c.j.Jackson2ObjectMapperBuilder : For Jackson Kotlin classes support please add "com.fasterxml.jackson.module:jackson-module-kotlin" to the classpath
  225. 2018-01-05 14:54:46.564 WARN 4528 --- [ main] o.s.h.c.j.Jackson2ObjectMapperBuilder : For Jackson Kotlin classes support please add "com.fasterxml.jackson.module:jackson-module-kotlin" to the classpath
  226. 2018-01-05 14:54:46.564 WARN 4528 --- [ main] o.s.h.c.j.Jackson2ObjectMapperBuilder : For Jackson Kotlin classes support please add "com.fasterxml.jackson.module:jackson-module-kotlin" to the classpath
  227. 2018-01-05 14:54:46.697 WARN 4528 --- [ main] o.s.h.c.j.Jackson2ObjectMapperBuilder : For Jackson Kotlin classes support please add "com.fasterxml.jackson.module:jackson-module-kotlin" to the classpath
  228. 2018-01-05 14:54:46.775 WARN 4528 --- [ main] o.s.h.c.j.Jackson2ObjectMapperBuilder : For Jackson Kotlin classes support please add "com.fasterxml.jackson.module:jackson-module-kotlin" to the classpath
  229. 2018-01-05 14:54:46.775 INFO 4528 --- [ main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@35399441: startup date [Fri Jan 05 14:54:35 CET 2018]; root of context hierarchy
  230. 2018-01-05 14:54:46.884 WARN 4528 --- [ main] o.s.h.c.j.Jackson2ObjectMapperBuilder : For Jackson Kotlin classes support please add "com.fasterxml.jackson.module:jackson-module-kotlin" to the classpath
  231. 2018-01-05 14:54:48.024 INFO 4528 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Registering beans for JMX exposure on startup
  232. 2018-01-05 14:54:48.027 INFO 4528 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Bean with name 'dataSource' has been autodetected for JMX exposure
  233. 2018-01-05 14:54:48.039 INFO 4528 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Located MBean 'dataSource': registering with JMX server as MBean [com.zaxxer.hikari:name=dataSource,type=HikariDataSource]
  234. 2018-01-05 14:54:48.202 INFO 4528 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8080 (http) with context path '/mako'
  235. 2018-01-05 14:54:48.218 INFO 4528 --- [ main] com.oesia.mako.MakoApplicationKt : Started MakoApplicationKt in 15.086 seconds (JVM running for 16.805)
  236. 2018-01-05 14:55:30.532 INFO 4528 --- [io-8080-exec-10] o.a.c.c.C.[Tomcat].[localhost].[/mako] : Initializing Spring FrameworkServlet 'dispatcherServlet'
  237. 2018-01-05 14:55:30.532 INFO 4528 --- [io-8080-exec-10] o.s.web.servlet.DispatcherServlet : FrameworkServlet 'dispatcherServlet': initialization started
  238. 2018-01-05 14:55:30.582 INFO 4528 --- [io-8080-exec-10] o.s.web.servlet.DispatcherServlet : FrameworkServlet 'dispatcherServlet': initialization completed in 50 ms
Add Comment
Please, Sign In to add comment