maven - How to run the spring security samples from command line (instead of from STS)? -


I'm trying to run samples from

This guide explains how to use an unsafe MVC sample Spring Suit Tool Suit (STS):

How can I run a sample from the command line (instead of the STS)?

I have tried to add pom.xml to the following -> project / build / plugin:

   & Lt; Version & gt; 2.2 & lt; / Edition & gt; & Lt; Configuration & gt; & Lt; Path & gt; / & Lt; / Path & gt; & Lt; UriEncoding & gt; UTF-8 & lt; / UriEncoding & gt; & Lt; Host name & gt; Local Host & lt; / Hostname & gt; & Lt; Harbor & gt; 8080 & lt; / Port & gt; & Lt; Update & gt; True & lt; / Update & gt; & Lt; UseTestClasspath & gt; True & lt; / UseTestClasspath & gt; & Lt; / Configuration & gt; & Lt; / Plugin & gt;  

is going on

  $ mvn package tomcat7: run but http: // localhost: 8080 / sample / browsing me an HTTP status 400 - request The syntax sent by the client was incorrect.  

Solution based on Luke's answer

  $ git clone https://github.com/spring- Projects /spring-security.git $ cd Spring-security / specimens / unreliable $ ./../gradlew Task # This shows many defined tasks, among them TomcatRunWire $ ../../gradlew tomcatRunWar  

I'm not sure what the problem is here, but if you only interested in running a Spring Security Sample The project source is very much in the tree Areas are.

$ git clone git@github.com: Spring-Projects / Spring-safety .git $ cd Spring-security / Samples / Tutorials- xml $. ./../gradlew jettyRun

Give you a running server You can also use a local gradle installation in place of the wrapper included in the project. The initial build will take a while, but there are several sample projects that you can run later, both can display xml namespace and java configuration options.


Comments

Popular posts from this blog

Editing Python Class in Shell and SQLAlchemy -

import - Python ImportError: No module named wmi -

uislider - In a MATLAB GUI, how does one implement a continuously varying slider from a GUIDE created .m file? -