Commit 7365d3b7 authored by yujicen's avatar yujicen

初始化

parent c1b435bd
Pipeline #308 failed with stages
package com.supServer; package com.supServer;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
...@@ -10,9 +11,9 @@ import org.springframework.scheduling.annotation.EnableScheduling; ...@@ -10,9 +11,9 @@ import org.springframework.scheduling.annotation.EnableScheduling;
* 启动程序 * 启动程序
* @author dsk * @author dsk
*/ */
@EnableScheduling // 开启定时任务功能
@EnableAsync @EnableAsync
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class }) @SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
@MapperScan("com.supServer.project.mapper")
public class SupServerApplication public class SupServerApplication
{ {
public static void main(String[] args) public static void main(String[] args)
......
...@@ -16,7 +16,7 @@ import org.springframework.context.annotation.EnableAspectJAutoProxy; ...@@ -16,7 +16,7 @@ import org.springframework.context.annotation.EnableAspectJAutoProxy;
// 表示通过aop框架暴露该代理对象,AopContext能够访问 // 表示通过aop框架暴露该代理对象,AopContext能够访问
@EnableAspectJAutoProxy(exposeProxy = true) @EnableAspectJAutoProxy(exposeProxy = true)
// 指定要扫描的Mapper类的包的路径 // 指定要扫描的Mapper类的包的路径
@MapperScan("com.cqzx.project.**.mapper") @MapperScan("com.supServer.project.**.mapper")
public class ApplicationConfig public class ApplicationConfig
{ {
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment