diff --git a/lzbi-admin/pom.xml b/lzbi-admin/pom.xml index c29de58..3514e77 100644 --- a/lzbi-admin/pom.xml +++ b/lzbi-admin/pom.xml @@ -70,6 +70,13 @@ com.lzbi lzbi-module + + + org.ssssssss + magic-api-spring-boot-starter + 2.1.1 + + diff --git a/lzbi-admin/src/main/resources/application-dev.yml b/lzbi-admin/src/main/resources/application-dev.yml index ec72d5d..79b65c0 100644 --- a/lzbi-admin/src/main/resources/application-dev.yml +++ b/lzbi-admin/src/main/resources/application-dev.yml @@ -35,6 +35,11 @@ spring: url: jdbc:mysql://10.10.10.56:13306/lzdc_bi_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 username: luenmei password: 123456 + # 主库数据源 + charge: + url: jdbc:oracle:thin:@//10.10.10.60:1521/HX?CONNECT_TIMEOUT=10000&Read_Timeout=120000 + username: lmjt_sys + password: lmjt_sys # 从库数据源 slave: # 从数据源开关/默认关闭 diff --git a/lzbi-admin/src/main/resources/application.yml b/lzbi-admin/src/main/resources/application.yml index a7ac610..ad12beb 100644 --- a/lzbi-admin/src/main/resources/application.yml +++ b/lzbi-admin/src/main/resources/application.yml @@ -115,3 +115,13 @@ xss: excludes: /system/notice # 匹配链接 urlPatterns: /system/*,/monitor/*,/tool/* +magic-api: + #配置web页面入口 + web: /magic/api + #配置文件存储位置。当以classpath开头时,为只读模式 + resource: + type: database # 配置存储在数据库中 + tableName: magic_api_file # 数据库中的表名 + #datasource: master #指定数据源(单数据源时无需配置,多数据源时默认使用主数据源,如果存在其他数据源中需要指定。) + prefix: /magic-api # key前缀 + readonly: false diff --git a/lzbi-common/pom.xml b/lzbi-common/pom.xml index 8bc3ad3..6b2f583 100644 --- a/lzbi-common/pom.xml +++ b/lzbi-common/pom.xml @@ -136,6 +136,18 @@ hutool-all 5.8.16 + + + com.oracle + ojdbc14 + 10.2.0.3.0 + + + + com.googlecode.aviator + aviator + 5.4.1 + \ No newline at end of file diff --git a/lzbi-framework/src/main/java/com/lzbi/framework/config/SecurityConfig.java b/lzbi-framework/src/main/java/com/lzbi/framework/config/SecurityConfig.java index 01f69fc..5aafb00 100644 --- a/lzbi-framework/src/main/java/com/lzbi/framework/config/SecurityConfig.java +++ b/lzbi-framework/src/main/java/com/lzbi/framework/config/SecurityConfig.java @@ -111,7 +111,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter // 过滤请求 .authorizeRequests() // 对于登录login 注册register 验证码captchaImage 允许匿名访问 - .antMatchers("/login", "/register", "/captchaImage","/assetData/**").permitAll() + .antMatchers("/login", "/register", "/captchaImage","/assetData/**","/magic/api/**").permitAll() // 静态资源,可匿名访问 .antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll() .antMatchers( "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll() diff --git a/lzbi-generator/src/main/resources/generator.yml b/lzbi-generator/src/main/resources/generator.yml index 3e71747..2429c3a 100644 --- a/lzbi-generator/src/main/resources/generator.yml +++ b/lzbi-generator/src/main/resources/generator.yml @@ -1,9 +1,9 @@ # 代码生成 gen: # 作者 - author: ruoyi + author: win # 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool - packageName: com.lzbi.system + packageName: com.lzbi # 自动去除表前缀,默认是false autoRemovePre: false # 表前缀(生成类名不会包含表前缀,多个用逗号分隔) diff --git a/lzbi-generator/src/main/resources/vm/vue/index-tree.vue.vm b/lzbi-generator/src/main/resources/vm/vue/index-tree.vue.vm index 4819c2a..c54d62b 100644 --- a/lzbi-generator/src/main/resources/vm/vue/index-tree.vue.vm +++ b/lzbi-generator/src/main/resources/vm/vue/index-tree.vue.vm @@ -1,6 +1,6 @@