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> <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);
}