Springboot-springsecurity Integration-Fix

Source: Internet
Author: User

Original address: http://blog.csdn.net/ABAP_Brave/article/details/53032694

The original text of the Pom.xml file is not complete.
The original text does not have a given startup class.
The deletion of the original text is complete here.

This is a preliminary article
If you are interested please see the Advanced Article One:

springboot+mybatis+springsecurity Implement user Role database management

Advanced Chapter Two

Springboot+springsecurity database dynamic management of users, roles, permissions (ii)
Pom.xml

<?xml version= "1.0" encoding= "UTF-8"?> <project xmlns= "http://maven.apache.org/POM/4.0.0" xmlns:xsi= "HTT" P://www.w3.org/2001/xmlschema-instance "xsi:schemalocation=" http://maven.apache.org/POM/4.0.0 Http://maven.apach E.org/xsd/maven-4.0.0.xsd "> <modelVersion>4.0.0</modelVersion> <groupid>com.us.example</ Groupid> <artifactId>springSecurity</artifactId> <version>1.0-SNAPSHOT</version> & Lt;parent> <groupId>org.springframework.boot</groupId> <artifactid>spring-boot-starte r-parent</artifactid> <version>1.3.0.RELEASE</version> </parent> &LT;PROPERTIES&G
        T <start-class>com.us.WebApplication</start-class> <maven.compiler.target>1.8</ 

    Maven.compiler.target> <maven.compiler.source>1.8</maven.compiler.source> </properties>

  <dependencies>      <!--core modules, including automatic configuration support, log and Yaml--> <dependency> <groupid>org.springframework.boot&

        Lt;/groupid> <artifactId>spring-boot-starter</artifactId> </dependency> <!--test modules, including JUnit, Hamcrest, Mockito--> <dependency> <groupid>org.springframework.boo T</groupid> <artifactId>spring-boot-starter-test</artifactId> <scope>test& Lt;/scope> </dependency> <!--introduces Web module--> <dependency> <group
        Id>org.springframework.boot</groupid> <artifactId>spring-boot-starter-web</artifactId> </dependency> <!--springsecurity dependent--> <dependency> <groupid>o
        Rg.springframework.boot</groupid> <artifactId>spring-boot-starter-security</artifactId>
</dependency>
    </dependencies> </project> 
Application.java
Import org.springframework.boot.autoconfigure.SpringBootApplication;
Import Org.springframework.context.ConfigurableApplicationContext;

Import static org.springframework.boot.springapplication.*;

@SpringBootApplication public
class Application {public

    static void Main (string[] args) {
        Configurableapplicationcontext run = run (application.class, args);
    }

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.