修改包名
This commit is contained in:
@@ -30,7 +30,7 @@ public class BannerApplicationRunner implements ApplicationRunner {
|
||||
|
||||
@Override
|
||||
public void run(ApplicationArguments args) {
|
||||
String line = AnsiCode.GLOSS_GREEN.stain(":: orion-ops-server v" + version + " 服务已启动(" + env + ") ::\n") +
|
||||
String line = AnsiCode.GLOSS_GREEN.stain(":: orion-ops-launch v" + version + " 服务已启动(" + env + ") ::\n") +
|
||||
AnsiCode.GLOSS_GREEN.stain(":: swagger 文档 ") +
|
||||
AnsiCode.GLOSS_BLUE.stain("http://127.0.0.1:" + port + "/doc.html\n") +
|
||||
AnsiCode.GLOSS_GREEN.stain(":: druid console ") +
|
||||
|
||||
@@ -5,6 +5,7 @@ import com.orion.ops.framework.common.constant.FilterOrderConst;
|
||||
import com.orion.ops.framework.common.filter.FilterCreator;
|
||||
import com.orion.ops.framework.mybatis.cache.RowCacheClearFilter;
|
||||
import com.orion.ops.framework.mybatis.handler.FieldFillHandler;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import org.springframework.boot.autoconfigure.AutoConfiguration;
|
||||
import org.springframework.boot.web.servlet.FilterRegistrationBean;
|
||||
@@ -19,7 +20,7 @@ import org.springframework.context.annotation.Bean;
|
||||
* @since 2023/6/23 18:35
|
||||
*/
|
||||
@AutoConfiguration
|
||||
@MapperScan(value = "com.orion.ops.module.*.dao", lazyInitialization = "true")
|
||||
@MapperScan(value = "com.orion.ops.module.*.dao", annotationClass = Mapper.class, lazyInitialization = "true")
|
||||
public class OrionMybatisAutoConfiguration {
|
||||
|
||||
/**
|
||||
|
||||
@@ -15,6 +15,7 @@ import com.baomidou.mybatisplus.generator.config.rules.NamingStrategy;
|
||||
import com.orion.lang.constant.Const;
|
||||
import com.orion.ops.framework.mybatis.domain.BaseDO;
|
||||
import com.orion.ops.framework.mybatis.mapper.IMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* @author Jiahang Li
|
||||
@@ -111,6 +112,8 @@ public class CodeGenerator {
|
||||
.enableFileOverride()
|
||||
// mapper 配置
|
||||
.mapperBuilder()
|
||||
// dao 添加 @Mapper
|
||||
.mapperAnnotation(Mapper.class)
|
||||
// mapper 父类
|
||||
.superClass(IMapper.class)
|
||||
// 生成 BaseResultMap
|
||||
|
||||
@@ -23,7 +23,9 @@ public class UserHandshakeInterceptor implements HandshakeInterceptor {
|
||||
attributes.put(WsAttr.USER, 1);
|
||||
// if (user == null){
|
||||
// return false;
|
||||
// response.setStatusCode(HttpStatus.MULTI_STATUS);
|
||||
// }
|
||||
// HttpSessionHandshakeInterceptor
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user