allen 2 ani în urmă
părinte
comite
4943a79295

+ 1 - 1
kgraph-framework/src/main/java/com/kgraph/framework/config/SecurityConfig.java

@@ -119,7 +119,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
                 .antMatchers("/**/*.ttf","/**/*.woff").permitAll()
                 .antMatchers("/entcls/tree","/knowledge/class/entcls/tree").permitAll()
                 // TODO 给算法提供的文件下载
-                .antMatchers("/upload/uploadManage/download", "/extractKnowledge","/extract/subTask/saveKnowledge").permitAll()
+                .antMatchers("/upload/uploadManage/download", "/extractKnowledge","/extract/subTask/saveKnowledge","/kg/create").permitAll()
                 // 除上面外的所有请求全部需要鉴权认证
                 .anyRequest().authenticated()
                 .and()

+ 13 - 0
sql/initSQL.md

@@ -0,0 +1,13 @@
+CREATE DATABASE kgraph CHARACTER SET utf8 COLLATE utf8_general_ci;
+CREATE USER 'kgraph'@'localhost' IDENTIFIED BY '123456';
+CREATE USER 'kgraph'@'127.0.0.1' IDENTIFIED BY '123456';
+CREATE USER 'kgraph'@'::1' IDENTIFIED BY 'Password1';
+grant all privileges on kgraph.* to 'root'@'%' identified by '123456';
+grant all privileges on kgraph.* to 'root'@'localhost' identified by '123456';
+grant all privileges on kgraph.* to 'root'@'127.0.0.1' identified by '123456';
+grant all privileges on kgraph.* to 'root'@'::1' identified by '123456';
+flush privileges;
+
+use kgraph;
+source ./system.sql
+source ./quartz.sql