SQL2008maytonпропущено...
Приведи пример твоего Хело-Ворда который не собрался.
И я и другие присутствующие покажут чего надо допилить
чтоб собрался.
Вот хорошее предложение!
Итак взял готовый пример .
Использовал все, что предписано
What you’ll needAbout 15 minutes
A favorite text editor or IDE
JDK 1.8 or later
Gradle 2.3+ or Maven 3.0+
You can also import the code from this guide as well as view the web page directly into Spring Tool Suite (STS) and work your way through it from there.
импортировал проект через
с GitHubgit clone https://github.com/spring-guides/gs-securing-web.git
Все замечательно отработало.
Но при попытке запустить проект получил ошибку на
1. 2.
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
Что значит запустить?
Скомпилировать? Собрать?
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. 42. 43. 44. 45. 46. 47. 48. 49. 50. 51. 52. 53. 54. 55. 56. 57. 58. 59. 60. 61. 62. 63. 64. 65. 66. 67. 68. 69. 70. 71. 72. 73. 74. 75. 76. 77. 78. 79. 80. 81. 82. 83. 84. 85. 86. 87. 88. 89. 90. 91. 92. 93. 94. 95. 96. 97. 98. 99. 100. 101. 102. 103. 104. 105. 106. 107. 108. 109. 110. 111. 112. 113. 114. 115. 116. 117. 118. 119. 120. 121. 122. 123. 124. 125. 126. 127. 128. 129. 130. 131. 132. 133. 134. 135. 136. 137. 138. 139. 140. 141. 142. 143. 144. 145.
UserName@HostName D:\Work\TestProjects\gs-securing-web\complete> mvn clean package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building gs-securing-web 0.1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.6.1:clean (default-clean) @ gs-securing-web ---
[INFO] Deleting D:\Work\TestProjects\gs-securing-web\complete\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ gs-securing-web ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ gs-securing-web ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 3 source files to D:\Work\TestProjects\gs-securing-web\complete\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ gs-securing-web ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\Work\TestProjects\gs-securing-web\complete\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ gs-securing-web ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to D:\Work\TestProjects\gs-securing-web\complete\target\test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ gs-securing-web ---
[INFO] Surefire report directory: D:\Work\TestProjects\gs-securing-web\complete\target\surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
17:12:17.901 [main] DEBUG org.springframework.test.context.junit4.SpringJUnit4ClassRunner - SpringJUnit4ClassRunner constructor called with [class hello.ApplicationTests]
17:12:17.906 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating CacheAwareContextLoaderDelegate from class [org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate]
17:12:17.914 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating BootstrapContext using constructor [public org.springframework.test.context.support.DefaultBootstrapContext(java.lang.Class,org.springframework.test.context.CacheAwareContextLoaderDelegate)]
17:12:17.938 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating TestContextBootstrapper for test class [hello.ApplicationTests] from class [org.springframework.boot.test.context.SpringBootTestContextBootstrapper]
17:12:17.950 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [hello.ApplicationTests], using SpringBootContextLoader
17:12:17.953 [main] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [hello.ApplicationTests]: class path resource [hello/ApplicationTests-context.xml] does not exist
17:12:17.954 [main] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [hello.ApplicationTests]: class path resource [hello/ApplicationTestsContext.groovy] does not exist
17:12:17.954 [main] INFO org.springframework.test.context.support.AbstractContextLoader - Could not detect default resource locations for test class [hello.ApplicationTests]: no resource found for suffixes {-context.xml, Context.groovy}.
17:12:17.954 [main] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils - Could not detect default configuration classes for test class [hello.ApplicationTests]: ApplicationTests does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
17:12:17.996 [main] DEBUG org.springframework.test.context.support.ActiveProfilesUtils - Could not find an 'annotation declaring class' for annotation type [org.springframework.test.context.ActiveProfiles] and class [hello.ApplicationTests]
17:12:18.032 [main] DEBUG org.springframework.core.env.StandardEnvironment - Adding [systemProperties] PropertySource with lowest search precedence
17:12:18.032 [main] DEBUG org.springframework.core.env.StandardEnvironment - Adding [systemEnvironment] PropertySource with lowest search precedence
17:12:18.033 [main] DEBUG org.springframework.core.env.StandardEnvironment - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]
17:12:18.041 [main] DEBUG org.springframework.core.io.support.PathMatchingResourcePatternResolver - Resolved classpath location [hello/] to resources [file:/D:/Work/TestProjects/gs-securing-web/complete/target/test-classes/hello/], URL [file:/D:/Work/TestProjects/gs-securing-web/complete/target/classes/hello/]]
17:12:18.041 [main] DEBUG org.springframework.core.io.support.PathMatchingResourcePatternResolver - Looking for matching resources in directory tree [D:\Work\TestProjects\gs-securing-web\complete\target\test-classes\hello]
17:12:18.041 [main] DEBUG org.springframework.core.io.support.PathMatchingResourcePatternResolver - Searching directory [D:\Work\TestProjects\gs-securing-web\complete\target\test-classes\hello] for files matching pattern [D:/Work/TestProjects/gs-securing-web/complete/target/test-classes/hello/*.class]
17:12:18.044 [main] DEBUG org.springframework.core.io.support.PathMatchingResourcePatternResolver - Looking for matching resources in directory tree [D:\Work\TestProjects\gs-securing-web\complete\target\classes\hello]
17:12:18.044 [main] DEBUG org.springframework.core.io.support.PathMatchingResourcePatternResolver - Searching directory [D:\Work\TestProjects\gs-securing-web\complete\target\classes\hello] for files matching pattern [D:/Work/TestProjects/gs-securing-web/complete/target/classes/hello/*.class]
17:12:18.045 [main] DEBUG org.springframework.core.io.support.PathMatchingResourcePatternResolver - Resolved location pattern [classpath*:hello/*.class] to resources [file [D:\Work\TestProjects\gs-securing-web\complete\target\test-classes\hello\ApplicationTests.class], file [D:\Work\TestProjects\gs-securing-web\complete\target\classes\hello\Application.class], file [D:\Work\TestProjects\gs-securing-web\complete\target\classes\hello\MvcConfig.class], file [D:\Work\TestProjects\gs-securing-web\complete\target\classes\hello\WebSecurityConfig.class]]
17:12:18.076 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: file [D:\Work\TestProjects\gs-securing-web\complete\target\classes\hello\Application.class]
17:12:18.081 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Found @SpringBootConfiguration hello.Application for test class hello.ApplicationTests
17:12:18.084 [main] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - @TestExecutionListeners is not present for class [hello.ApplicationTests]: using defaults.
17:12:18.087 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener, org.springframework.security.test.context.support.WithSecurityContextTestExecutionListener]
17:12:18.101 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Could not instantiate TestExecutionListener [org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener]. Specify custom listener classes or make the default listener classes (and their required dependencies) available. Offending class: [org/springframework/transaction/interceptor/TransactionAttribute]
17:12:18.101 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Could not instantiate TestExecutionListener [org.springframework.test.context.transaction.TransactionalTestExecutionListener]. Specify custom listener classes or make the default listener classes (and their required dependencies) available. Offending class: [org/springframework/transaction/interceptor/TransactionAttributeSource]
17:12:18.102 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@240237d2, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@25a65b77, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@2ed0fbae, org.springframework.test.context.support.DirtiesContextTestExecutionListener@212bf671, org.springframework.security.test.context.support.WithSecurityContextTestExecutionListener@14a2f921, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@3c87521, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@2aece37d, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@548a102f, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@5762806e, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@17c386de, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@5af97850]
17:12:18.104 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [hello.ApplicationTests]
17:12:18.105 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [hello.ApplicationTests]
Running hello.ApplicationTests
17:12:18.108 [main] DEBUG org.springframework.test.context.junit4.SpringJUnit4ClassRunner - SpringJUnit4ClassRunner constructor called with [class hello.ApplicationTests]
17:12:18.108 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating CacheAwareContextLoaderDelegate from class [org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate]
17:12:18.108 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating BootstrapContext using constructor [public org.springframework.test.context.support.DefaultBootstrapContext(java.lang.Class,org.springframework.test.context.CacheAwareContextLoaderDelegate)]
17:12:18.108 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating TestContextBootstrapper for test class [hello.ApplicationTests] from class [org.springframework.boot.test.context.SpringBootTestContextBootstrapper]
17:12:18.109 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [hello.ApplicationTests], using SpringBootContextLoader
17:12:18.110 [main] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [hello.ApplicationTests]: class path resource [hello/ApplicationTests-context.xml] does not exist
17:12:18.110 [main] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [hello.ApplicationTests]: class path resource [hello/ApplicationTestsContext.groovy] does not exist
17:12:18.110 [main] INFO org.springframework.test.context.support.AbstractContextLoader - Could not detect default resource locations for test class [hello.ApplicationTests]: no resource found for suffixes {-context.xml, Context.groovy}.
17:12:18.110 [main] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils - Could not detect default configuration classes for test class [hello.ApplicationTests]: ApplicationTests does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
17:12:18.116 [main] DEBUG org.springframework.test.context.support.ActiveProfilesUtils - Could not find an 'annotation declaring class' for annotation type [org.springframework.test.context.ActiveProfiles] and class [hello.ApplicationTests]
17:12:18.117 [main] DEBUG org.springframework.core.env.StandardEnvironment - Adding [systemProperties] PropertySource with lowest search precedence
17:12:18.117 [main] DEBUG org.springframework.core.env.StandardEnvironment - Adding [systemEnvironment] PropertySource with lowest search precedence
17:12:18.117 [main] DEBUG org.springframework.core.env.StandardEnvironment - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]
17:12:18.117 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Found @SpringBootConfiguration hello.Application for test class hello.ApplicationTests
17:12:18.119 [main] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - @TestExecutionListeners is not present for class [hello.ApplicationTests]: using defaults.
17:12:18.121 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener, org.springframework.security.test.context.support.WithSecurityContextTestExecutionListener]
17:12:18.125 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Could not instantiate TestExecutionListener [org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener]. Specify custom listener classes or make the default listener classes (and their required dependencies) available. Offending class: [org/springframework/transaction/interceptor/TransactionAttribute]
17:12:18.126 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Could not instantiate TestExecutionListener [org.springframework.test.context.transaction.TransactionalTestExecutionListener]. Specify custom listener classes or make the default listener classes (and their required dependencies) available. Offending class: [org/springframework/transaction/interceptor/TransactionAttributeSource]
17:12:18.126 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@10db82ae, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@501edcf1, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@78b729e6, org.springframework.test.context.support.DirtiesContextTestExecutionListener@6b4a4e18, org.springframework.security.test.context.support.WithSecurityContextTestExecutionListener@27c86f2d, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@197d671, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@402e37bc, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@79ad8b2f, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@1df82230, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@22635ba0, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@13c10b87]
17:12:18.127 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [hello.ApplicationTests]
17:12:18.127 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [hello.ApplicationTests]
17:12:18.128 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [hello.ApplicationTests]
17:12:18.128 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [hello.ApplicationTests]
17:12:18.131 [main] DEBUG org.springframework.test.context.support.AbstractDirtiesContextTestExecutionListener - Before test class: context [DefaultTestContext@43ee72e6 testClass = ApplicationTests, testInstance = [null], testMethod = [null], testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@23529fee testClass = ApplicationTests, locations = '{}', classes = '{class hello.Application}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}', contextCustomizers = set[org.springframework.boot.test.context.ImportsContextCustomizer@a20f2644, org.springframework.boot.test.context.SpringBootTestContextCustomizer@22a67b4, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@3224f60b, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@e7e8512, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@1d29cf23], resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]]], class annotated with @DirtiesContext [false] with mode [null].
17:12:18.132 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [hello.ApplicationTests]
17:12:18.132 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [hello.ApplicationTests]
17:12:18.157 [main] DEBUG org.springframework.core.env.StandardEnvironment - Adding [systemProperties] PropertySource with lowest search precedence
17:12:18.157 [main] DEBUG org.springframework.core.env.StandardEnvironment - Adding [systemEnvironment] PropertySource with lowest search precedence
17:12:18.158 [main] DEBUG org.springframework.core.env.StandardEnvironment - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]
17:12:18.161 [main] DEBUG org.springframework.test.context.support.TestPropertySourceUtils - Adding inlined properties to environment: {spring.jmx.enabled=false, org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true, server.port=-1}
17:12:18.161 [main] DEBUG org.springframework.core.env.StandardEnvironment - Adding [Inlined Test Properties] PropertySource with highest search precedence
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v1.4.2.RELEASE)
2016-12-21 17:12:18.498 INFO 9876 --- [ main] hello.ApplicationTests : Starting ApplicationTests on HOSTNAME with PID 9876 (started by UserName in D:\Work\TestProjects\gs-securing-web\complete)
2016-12-21 17:12:18.498 INFO 9876 --- [ main] hello.ApplicationTests : No active profile set, falling back to default profiles: default
2016-12-21 17:12:18.663 INFO 9876 --- [ main] o.s.w.c.s.GenericWebApplicationContext : Refreshing org.springframework.web.context.support.GenericWebApplicationContext@6f01b95f: startup date [Wed Dec 21 17:12:18 SAMT 2016]; root of context hierarchy
2016-12-21 17:12:20.122 INFO 9876 --- [ main] o.s.s.web.DefaultSecurityFilterChain : Creating filter chain: org.springframework.security.web.util.matcher.AnyRequestMatcher@1, [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@7dff6d05, org.springframework.security.web.context.SecurityContextPersistenceFilter@4a7a965d, org.springframework.security.web.header.HeaderWriterFilter@573284a5, org.springframework.security.web.csrf.CsrfFilter@33364212, org.springframework.security.web.authentication.logout.LogoutFilter@128c502c, org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter@4f67e3df, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@64a9d48c, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@99407c2, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@45d64d27, org.springframework.security.web.session.SessionManagementFilter@23f72d88, org.springframework.security.web.access.ExceptionTranslationFilter@6601cc93, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@19b047fe]
2016-12-21 17:12:20.371 INFO 9876 --- [ main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring FrameworkServlet ''
2016-12-21 17:12:20.371 INFO 9876 --- [ main] o.s.t.web.servlet.TestDispatcherServlet : FrameworkServlet '': initialization started
2016-12-21 17:12:20.422 INFO 9876 --- [ main] 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.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
2016-12-21 17:12:20.424 INFO 9876 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
2016-12-21 17:12:20.440 INFO 9876 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/home] onto handler of type [class org.springframework.web.servlet.mvc.ParameterizableViewController]
2016-12-21 17:12:20.441 INFO 9876 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Root mapping to handler of type [class org.springframework.web.servlet.mvc.ParameterizableViewController]
2016-12-21 17:12:20.442 INFO 9876 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/hello] onto handler of type [class org.springframework.web.servlet.mvc.ParameterizableViewController]
2016-12-21 17:12:20.442 INFO 9876 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/login] onto handler of type [class org.springframework.web.servlet.mvc.ParameterizableViewController]
2016-12-21 17:12:20.457 INFO 9876 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2016-12-21 17:12:20.457 INFO 9876 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2016-12-21 17:12:20.478 INFO 9876 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2016-12-21 17:12:20.540 INFO 9876 --- [ main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.web.context.support.GenericWebApplicationContext@6f01b95f: startup date [Wed Dec 21 17:12:18 SAMT 2016]; root of context hierarchy
2016-12-21 17:12:20.871 INFO 9876 --- [ main] o.s.t.web.servlet.TestDispatcherServlet : FrameworkServlet '': initialization completed in 500 ms
2016-12-21 17:12:21.030 INFO 9876 --- [ main] hello.ApplicationTests : Started ApplicationTests in 2.86 seconds (JVM running for 3.441)
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.352 sec - in hello.ApplicationTests
2016-12-21 17:12:21.463 INFO 9876 --- [ Thread-1] o.s.w.c.s.GenericWebApplicationContext : Closing org.springframework.web.context.support.GenericWebApplicationContext@6f01b95f: startup date [Wed Dec 21 17:12:18 SAMT 2016]; root of context hierarchy
Results :
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ gs-securing-web ---
[INFO] Building jar: D:\Work\TestProjects\gs-securing-web\complete\target\gs-securing-web-0.1.0.jar
[INFO]
[INFO] --- spring-boot-maven-plugin:1.4.2.RELEASE:repackage (default) @ gs-securing-web ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.889 s
[INFO] Finished at: 2016-12-21T17:12:22+04:00
[INFO] Final Memory: 30M/310M
[INFO] ------------------------------------------------------------------------
UserName@HostName D:\Work\TestProjects\gs-securing-web\complete
>
Запустить Jar? 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41.
UserName@HostName D:\Work\TestProjects\gs-securing-web\complete> java -jar target/gs-securing-web-0.1.0.jar
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v1.4.2.RELEASE)
2016-12-21 17:16:53.730 INFO 9604 --- [ main] hello.Application : Starting Application v0.1.0 on HOSTNAME with PID 9604 (D:\Work\TestProjects\gs-securing-web\complete\target\gs-securing-web-0.1.0.jar started by UserName in D:\Work\TestProjects\gs-securing-web\complete)
2016-12-21 17:16:53.776 INFO 9604 --- [ main] hello.Application : No active profile set, falling back to default profiles: default
2016-12-21 17:16:54.153 INFO 9604 --- [ main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@5a2e4553: startup date [Wed Dec 21 17:16:54 SAMT 2016]; root of context hierarchy
2016-12-21 17:16:55.778 INFO 9604 --- [ main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 8080 (http)
2016-12-21 17:16:55.791 INFO 9604 --- [ main] o.apache.catalina.core.StandardService : Starting service Tomcat
2016-12-21 17:16:55.793 INFO 9604 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.5.6
2016-12-21 17:16:55.888 INFO 9604 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2016-12-21 17:16:55.888 INFO 9604 --- [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 1738 ms
2016-12-21 17:16:56.094 INFO 9604 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'characterEncodingFilter' to: [/*]
2016-12-21 17:16:56.095 INFO 9604 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
2016-12-21 17:16:56.095 INFO 9604 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'httpPutFormContentFilter' to: [/*]
2016-12-21 17:16:56.095 INFO 9604 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'requestContextFilter' to: [/*]
2016-12-21 17:16:56.097 INFO 9604 --- [ost-startStop-1] .s.DelegatingFilterProxyRegistrationBean : Mapping filter: 'springSecurityFilterChain' to: [/*]
2016-12-21 17:16:56.097 INFO 9604 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean : Mapping servlet: 'dispatcherServlet' to [/]
2016-12-21 17:16:56.591 INFO 9604 --- [ main] o.s.s.web.DefaultSecurityFilterChain : Creating filter chain: org.springframework.security.web.util.matcher.AnyRequestMatcher@1, [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@318ba8c8, org.springframework.security.web.context.SecurityContextPersistenceFilter@3c72f59f, org.springframework.security.web.header.HeaderWriterFilter@37918c79, org.springframework.security.web.csrf.CsrfFilter@2805c96b, org.springframework.security.web.authentication.logout.LogoutFilter@3901d134, org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter@25d250c6, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@222114ba, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@3d121db3, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@6dbb137d, org.springframework.security.web.session.SessionManagementFilter@233fe9b6, org.springframework.security.web.access.ExceptionTranslationFilter@5db250b4, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@33afa13b]
2016-12-21 17:16:56.683 INFO 9604 --- [ main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@5a2e4553: startup date [Wed Dec 21 17:16:54 SAMT 2016]; root of context hierarchy
2016-12-21 17:16:56.781 INFO 9604 --- [ main] 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.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
2016-12-21 17:16:56.782 INFO 9604 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
2016-12-21 17:16:56.794 INFO 9604 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/home] onto handler of type [class org.springframework.web.servlet.mvc.ParameterizableViewController]
2016-12-21 17:16:56.794 INFO 9604 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Root mapping to handler of type [class org.springframework.web.servlet.mvc.ParameterizableViewController]
2016-12-21 17:16:56.795 INFO 9604 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/hello] onto handler of type [class org.springframework.web.servlet.mvc.ParameterizableViewController]
2016-12-21 17:16:56.795 INFO 9604 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/login] onto handler of type [class org.springframework.web.servlet.mvc.ParameterizableViewController]
2016-12-21 17:16:56.808 INFO 9604 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2016-12-21 17:16:56.808 INFO 9604 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2016-12-21 17:16:56.851 INFO 9604 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2016-12-21 17:16:57.270 INFO 9604 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Registering beans for JMX exposure on startup
2016-12-21 17:16:57.332 INFO 9604 --- [ main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 8080 (http)
2016-12-21 17:16:57.337 INFO 9604 --- [ main] hello.Application : Started Application in 4.226 seconds (JVM running for 4.679)
2016-12-21 17:17:07.992 INFO 9604 --- [nio-8080-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring FrameworkServlet 'dispatcherServlet'
2016-12-21 17:17:07.992 INFO 9604 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : FrameworkServlet 'dispatcherServlet': initialization started
2016-12-21 17:17:08.011 INFO 9604 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : FrameworkServlet 'dispatcherServlet': initialization completed in 19 ms
|