Advertisement
Guest User

Untitled

a guest
Feb 13th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.78 KB | None | 0 0
  1. ...........
  2.  
  3. rtInternal Starting Servlet Engine: Apache Tomcat/8.0.32
  4. 13-Feb-2016 23:57:32.965 INFO [localhost-startStop-1] org.apache.catalina.startu
  5. p.HostConfig.deployWAR Deploying web application archive C:Program FilesApache
  6. Software FoundationTomcat 8.0webappssuperheroes-0.0.1-SNAPSHOT.war
  7. 13-Feb-2016 23:57:43.058 INFO [localhost-startStop-1] org.apache.jasper.servlet.
  8. TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs.
  9. Enable debug logging for this logger for a complete list of JARs that were scan
  10. ned but no TLDs were found in them. Skipping unneeded JARs during scanning can i
  11. mprove startup time and JSP compilation time.
  12.  
  13. . ____ _ __ _ _
  14. /\ / ___'_ __ _ _(_)_ __ __ _
  15. ( ( )___ | '_ | '_| | '_ / _` |
  16. \/ ___)| |_)| | | | | || (_| | ) ) ) )
  17. ' |____| .__|_| |_|_| |___, | / / / /
  18. =========|_|==============|___/=/_/_/_/
  19. :: Spring Boot :: (v1.3.2.RELEASE)
  20.  
  21. 2016-02-13 23:57:46.723 INFO 7804 --- [ost-startStop-1] com.ga1.SuperHeroesAppl
  22. ication : Starting SuperHeroesApplication v0.0.1-SNAPSHOT on Kamil-PC
  23. with PID 7804 (started by Kamil in C:Program FilesApache Software FoundationT
  24. omcat 8.0)
  25. 2016-02-13 23:57:46.734 INFO 7804 --- [ost-startStop-1] com.ga1.SuperHeroesAppl
  26. ication : No active profile set, falling back to default profiles: def
  27. ault
  28. 2016-02-13 23:57:47.076 INFO 7804 --- [ost-startStop-1] ationConfigEmbeddedWebA
  29. pplicationContext : Refreshing org.springframework.boot.context.embedded.Annotat
  30. ionConfigEmbeddedWebApplicationContext@1935808: startup date [Sat Feb 13 23:57:4
  31. 7 ICT 2016]; root of context hierarchy
  32. 2016-02-13 23:57:49.030 INFO 7804 --- [ost-startStop-1] o.s.b.f.s.DefaultListab
  33. leBeanFactory : Overriding bean definition for bean 'beanNameViewResolver' w
  34. ith a different definition: replacing [Root bean: class [null]; scope=; abstract
  35. =false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=tru
  36. e; primary=false; factoryBeanName=org.springframework.boot.autoconfigure.web.Err
  37. orMvcAutoConfiguration$WhitelabelErrorViewConfiguration; factoryMethodName=beanN
  38. ameViewResolver; initMethodName=null; destroyMethodName=(inferred); defined in c
  39. lass path resource [org/springframework/boot/autoconfigure/web/ErrorMvcAutoConfi
  40. guration$WhitelabelErrorViewConfiguration.class]] with [Root bean: class [null];
  41. scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; auto
  42. wireCandidate=true; primary=false; factoryBeanName=org.springframework.boot.auto
  43. configure.web.WebMvcAutoConfiguration$WebMvcAutoConfigurationAdapter; factoryMet
  44. hodName=beanNameViewResolver; initMethodName=null; destroyMethodName=(inferred);
  45. defined in class path resource [org/springframework/boot/autoconfigure/web/WebM
  46. vcAutoConfiguration$WebMvcAutoConfigurationAdapter.class]]
  47. 2016-02-13 23:57:49.775 INFO 7804 --- [ost-startStop-1] o.s.web.context.Context
  48. Loader : Root WebApplicationContext: initialization completed in 2701
  49. ms
  50. 2016-02-13 23:57:50.957 INFO 7804 --- [ost-startStop-1] b.a.w.TomcatWebSocketCo
  51. ntainerCustomizer : NonEmbeddedServletContainerFactory detected. Websockets supp
  52. ort should be native so this normally is not a problem.
  53. 2016-02-13 23:57:51.674 INFO 7804 --- [ost-startStop-1] o.s.b.c.e.ServletRegist
  54. rationBean : Mapping servlet: 'dispatcherServlet' to [/]
  55. 2016-02-13 23:57:51.676 INFO 7804 --- [ost-startStop-1] o.s.b.c.embedded.Filter
  56. RegistrationBean : Mapping filter: 'errorPageFilter' to: [/*]
  57. 2016-02-13 23:57:51.677 INFO 7804 --- [ost-startStop-1] o.s.b.c.embedded.Filter
  58. RegistrationBean : Mapping filter: 'characterEncodingFilter' to: [/*]
  59. 2016-02-13 23:57:51.678 INFO 7804 --- [ost-startStop-1] o.s.b.c.embedded.Filter
  60. RegistrationBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
  61. 2016-02-13 23:57:51.680 INFO 7804 --- [ost-startStop-1] o.s.b.c.embedded.Filter
  62. RegistrationBean : Mapping filter: 'httpPutFormContentFilter' to: [/*]
  63. 2016-02-13 23:57:51.681 INFO 7804 --- [ost-startStop-1] o.s.b.c.embedded.Filter
  64. RegistrationBean : Mapping filter: 'requestContextFilter' to: [/*]
  65. 2016-02-13 23:57:52.361 INFO 7804 --- [ost-startStop-1] s.w.s.m.m.a.RequestMapp
  66. ingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.cont
  67. ext.embedded.AnnotationConfigEmbeddedWebApplicationContext@1935808: startup date
  68. [Sat Feb 13 23:57:47 ICT 2016]; root of context hierarchy
  69. 2016-02-13 23:57:52.635 INFO 7804 --- [ost-startStop-1] s.w.s.m.m.a.RequestMapp
  70. ingHandlerMapping : Mapped "{[/superHero],methods=[POST]}" onto public org.sprin
  71. gframework.http.ResponseEntity<java.lang.Void> com.ga1.superheroes.MainControlle
  72. r.createSuperHero(com.ga1.superheroes.repository.RepositorySuperHero)
  73. 2016-02-13 23:57:52.639 INFO 7804 --- [ost-startStop-1] s.w.s.m.m.a.RequestMapp
  74. ingHandlerMapping : Mapped "{[/superHero],methods=[GET]}" onto public org.spring
  75. framework.http.ResponseEntity<com.ga1.superheroes.repository.RepositorySuperHero
  76. > com.ga1.superheroes.MainController.getSuperHero(java.lang.String)
  77. 2016-02-13 23:57:52.640 INFO 7804 --- [ost-startStop-1] s.w.s.m.m.a.RequestMapp
  78. ingHandlerMapping : Mapped "{[/superHeroes],methods=[GET]}" onto public org.spri
  79. ngframework.http.ResponseEntity<java.util.List<java.lang.String>> com.ga1.superh
  80. eroes.MainController.getSuperHeroes()
  81. 2016-02-13 23:57:52.641 INFO 7804 --- [ost-startStop-1] s.w.s.m.m.a.RequestMapp
  82. ingHandlerMapping : Mapped "{[/hello],methods=[GET]}" onto public org.springfram
  83. ework.http.ResponseEntity<java.lang.String> com.ga1.superheroes.MainController.h
  84. ello()
  85. 2016-02-13 23:57:52.654 INFO 7804 --- [ost-startStop-1] s.w.s.m.m.a.RequestMapp
  86. ingHandlerMapping : Mapped "{[/error]}" onto public org.springframework.http.Res
  87. ponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframewo
  88. rk.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServ
  89. letRequest)
  90. 2016-02-13 23:57:52.655 INFO 7804 --- [ost-startStop-1] s.w.s.m.m.a.RequestMapp
  91. ingHandlerMapping : Mapped "{[/error],produces=[text/html]}" onto public org.spr
  92. ingframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web
  93. .BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.serv
  94. let.http.HttpServletResponse)
  95. 2016-02-13 23:57:52.733 INFO 7804 --- [ost-startStop-1] o.s.w.s.handler.SimpleU
  96. rlHandlerMapping : Mapped URL path [/webjars/**] onto handler of type [class or
  97. g.springframework.web.servlet.resource.ResourceHttpRequestHandler]
  98. 2016-02-13 23:57:52.733 INFO 7804 --- [ost-startStop-1] o.s.w.s.handler.SimpleU
  99. rlHandlerMapping : Mapped URL path [/**] onto handler of type [class org.spring
  100. framework.web.servlet.resource.ResourceHttpRequestHandler]
  101. 2016-02-13 23:57:52.843 INFO 7804 --- [ost-startStop-1] o.s.w.s.handler.SimpleU
  102. rlHandlerMapping : Mapped URL path [/**/favicon.ico] onto handler of type [clas
  103. s org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
  104. 2016-02-13 23:57:54.877 INFO 7804 --- [ost-startStop-1] org.mongodb.driver.clus
  105. ter : Cluster created with settings {hosts=[localhost:27017], mode
  106. =SINGLE, requiredClusterType=UNKNOWN, serverSelectionTimeout='30000 ms', maxWait
  107. QueueSize=500}
  108. 2016-02-13 23:57:55.325 INFO 7804 --- [localhost:27017] org.mongodb.driver.conn
  109. ection : Opened connection [connectionId{localValue:1, serverValue:16
  110. }] to localhost:27017
  111. 2016-02-13 23:57:55.328 INFO 7804 --- [localhost:27017] org.mongodb.driver.clus
  112. ter : Monitor thread successfully connected to server with descrip
  113. tion ServerDescription{address=localhost:27017, type=STANDALONE, state=CONNECTED
  114. , ok=true, version=ServerVersion{versionList=[3, 0, 5]}, minWireVersion=0, maxWi
  115. reVersion=3, maxDocumentSize=16777216, roundTripTimeNanos=876166}
  116. 2016-02-13 23:57:55.549 INFO 7804 --- [ost-startStop-1] o.s.j.e.a.AnnotationMBe
  117. anExporter : Registering beans for JMX exposure on startup
  118. 2016-02-13 23:57:55.590 INFO 7804 --- [ost-startStop-1] com.ga1.SuperHeroesAppl
  119. ication : Started SuperHeroesApplication in 11.432 seconds (JVM runnin
  120. g for 24.405)
  121. 13-Feb-2016 23:57:55.716 INFO [localhost-startStop-1] org.apache.catalina.startu
  122. p.HostConfig.deployWAR Deployment of web application archive C:Program FilesAp
  123. ache Software FoundationTomcat 8.0webappssuperheroes-0.0.1-SNAPSHOT.war has f
  124. inished in 22,750 ms
  125. 13-Feb-2016 23:57:55.721 INFO [main] org.apache.coyote.AbstractProtocol.start St
  126. arting ProtocolHandler ["http-nio-8080"]
  127. 13-Feb-2016 23:57:55.737 INFO [main] org.apache.coyote.AbstractProtocol.start St
  128. arting ProtocolHandler ["ajp-nio-8009"]
  129. 13-Feb-2016 23:57:55.742 INFO [main] org.apache.catalina.startup.Catalina.start
  130. Server startup in 22911 ms
  131.  
  132. <?xml version="1.0" encoding="UTF-8"?>
  133. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  134. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  135. <modelVersion>4.0.0</modelVersion>
  136.  
  137. <groupId>com.ga1</groupId>
  138. <artifactId>superheroes</artifactId>
  139. <version>0.0.1-SNAPSHOT</version>
  140. <packaging>war</packaging>
  141.  
  142. <name>superheroes</name>
  143. <description>really super</description>
  144.  
  145. <parent>
  146. <groupId>org.springframework.boot</groupId>
  147. <artifactId>spring-boot-starter-parent</artifactId>
  148. <version>1.3.2.RELEASE</version>
  149. <relativePath /> <!-- lookup parent from repository -->
  150. </parent>
  151.  
  152. <properties>
  153. <!-- <tomcat.version>8.0.8</tomcat.version> -->
  154. <!-- <start-class>com.ga1.SuperHeroesApplication</start-class> -->
  155. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  156. <java.version>1.8</java.version>
  157. </properties>
  158.  
  159. <dependencies>
  160. <dependency>
  161. <groupId>com.google.guava</groupId>
  162. <artifactId>guava</artifactId>
  163. <version>19.0</version>
  164. </dependency>
  165. <dependency>
  166. <groupId>org.apache.commons</groupId>
  167. <artifactId>commons-lang3</artifactId>
  168. <version>3.3.2</version>
  169. </dependency>
  170. <dependency>
  171. <groupId>org.mongodb</groupId>
  172. <artifactId>mongo-java-driver</artifactId>
  173. <version>3.2.0</version>
  174. </dependency>
  175. <dependency>
  176. <groupId>org.mockito</groupId>
  177. <artifactId>mockito-all</artifactId>
  178. <version>1.9.5</version>
  179. <scope>test</scope>
  180. </dependency>
  181. <dependency>
  182. <groupId>com.google.code.gson</groupId>
  183. <artifactId>gson</artifactId>
  184. <version>2.5</version>
  185. <scope>compile</scope>
  186. </dependency>
  187. <dependency>
  188. <groupId>org.springframework.boot</groupId>
  189. <artifactId>spring-boot-starter-web</artifactId>
  190. </dependency>
  191. <dependency>
  192. <groupId>org.springframework.boot</groupId>
  193. <artifactId>spring-boot-starter</artifactId>
  194. </dependency>
  195. <dependency>
  196. <groupId>org.springframework.boot</groupId>
  197. <artifactId>spring-boot-starter-tomcat</artifactId>
  198. <scope>provided</scope>
  199. </dependency>
  200. <dependency>
  201. <groupId>org.springframework.boot</groupId>
  202. <artifactId>spring-boot-starter-test</artifactId>
  203. <scope>test</scope>
  204. </dependency>
  205. <dependency>
  206. <groupId>org.mongodb</groupId>
  207. <artifactId>mongo-java-driver</artifactId>
  208. <version>3.2.1</version>
  209. </dependency>
  210. </dependencies>
  211.  
  212. <build>
  213. <plugins>
  214. <plugin>
  215. <groupId>org.springframework.boot</groupId>
  216. <artifactId>spring-boot-maven-plugin</artifactId>
  217. </plugin>
  218. </plugins>
  219. </build>
  220.  
  221.  
  222. </project>
  223.  
  224. package com.ga1.superheroes;
  225.  
  226. import org.springframework.http.HttpStatus;
  227. import org.springframework.http.ResponseEntity;
  228. import org.springframework.web.bind.annotation.RequestMapping;
  229. import org.springframework.web.bind.annotation.RequestMethod;
  230. import org.springframework.web.bind.annotation.RestController;
  231.  
  232. @RestController
  233. public class MainController {
  234.  
  235. @RequestMapping(value = "/hello", method = RequestMethod.GET)
  236. public ResponseEntity<String> hello() {
  237. return new ResponseEntity<>("Hello World", HttpStatus.OK);
  238. }
  239.  
  240. }
  241.  
  242. package com.ga1;
  243.  
  244. import org.springframework.boot.SpringApplication;
  245. import org.springframework.boot.autoconfigure.SpringBootApplication;
  246. import org.springframework.boot.builder.SpringApplicationBuilder;
  247. import org.springframework.boot.context.web.SpringBootServletInitializer;
  248.  
  249. @SpringBootApplication
  250. public class SuperHeroesApplication extends SpringBootServletInitializer {
  251.  
  252. public static void main(String[] args) {
  253. SpringApplication.run(SuperHeroesApplication.class, args);
  254. }
  255.  
  256. @Override
  257. protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
  258. return application.sources(SuperHeroesApplication.class);
  259. }
  260.  
  261. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement