Commit fdb61d34 authored by jichao's avatar jichao

redis配置,生成代码bug,取消登陆验证

parent 7314a2ba
......@@ -100,8 +100,8 @@ public class CodeServiceImpl extends BaseService implements CodeService {
tableModel.setTableName(table.toLowerCase());
tableModel.setTableRemark(tableRemarks.get(table).toString());
//column
rs = (ResultSet) dbmd.getColumns(null, codeSchema.getDbName(), table.toLowerCase(), null);
dbmd.getPrimaryKeys(null, null, tables[0].toLowerCase());
rs = (ResultSet) dbmd.getColumns(null, codeSchema.getDbName(), table.toUpperCase(), null);
dbmd.getPrimaryKeys(null, null, tables[0].toUpperCase() );
boolean flag = false;
while (rs.next()) {
model = new DbColumnModel();
......@@ -111,7 +111,7 @@ public class CodeServiceImpl extends BaseService implements CodeService {
model.copyColumnFromSqlResult(rs);
models.add(model);
}
rs = (ResultSet) dbmd.getPrimaryKeys(null, codeSchema.getDbName(), table.toLowerCase());
rs = (ResultSet) dbmd.getPrimaryKeys(null, codeSchema.getDbName(), table.toUpperCase());
while (rs.next()) {
String column = rs.getString("COLUMN_NAME");
for(DbColumnModel cm : models){
......
......@@ -80,6 +80,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
.antMatchers("/auth/**").permitAll() //登录注册等请求过滤
.antMatchers("/code/**").permitAll() //登录注册等请求过滤
.antMatchers("/excelUtil/**").permitAll()//excel类
.antMatchers("/**/**").permitAll()
.antMatchers(
"/",
"/*.html",
......
......@@ -11,9 +11,9 @@ server:
# org.springframework.web: DEBUG
druid:
url: jdbc:mysql://127.0.0.1:3306/zhny?useUnicode=true&characterEncoding=UTF-8&useSSL=false&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true
url: jdbc:mysql://103.249.252.109:13328/zhny?useUnicode=true&characterEncoding=UTF-8&useSSL=false&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true
username: root
password: root
password: 123456
initial-size: 1
min-idle: 1
max-active: 20
......@@ -56,6 +56,17 @@ spring:
charset: UTF-8
suffix: .ftl
template-loader-path: classpath:/templates/
redis:
host: 103.249.252.109
port: 7484
pool:
max-idle: 50
max-active: 1000
min-idle: 5
max-wait: -1
database: 0
password: ''
timeout: 3600
springfox:
documentation:
......
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