提交 ab834892 authored 作者: zhoushaopan's avatar zhoushaopan

fix(版本模块,security模块): [security]模块新增了释放路径以及修改session[版本模块]新增了version字段

[security]模块新增了释放路径以及修改session[版本模块]新增了version字段
上级 0bd7b020
spring.jpa.hibernate.ddl-auto=update
spring.datasource.url=jdbc:mysql://124.70.145.101:3306/device?serverTimezone=Asia/Shanghai&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&useSSL=false
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.username=device
spring.datasource.password=Qwer1234
file.path=C:/Users/dengdiyi/Documents/file/
preview.path=http://124.70.145.101:8087/equip/file/
\ No newline at end of file
spring.datasource.driver-class-name=com.oscar.Driver
#spring.datasource.url=jdbc:oscar://10.153.4.10:2003/OSRDB
spring.datasource.url=jdbc:oscar://192.168.0.80:2003/OSRDB
spring.datasource.username=SYSDBA
spring.datasource.password=szoscar55
spring.jpa.database-platform=org.hibernate.dialect.OscarDialect
file.path=/opt/zb/
#preview.path=http://10.153.4.11:8088/equip/file/
preview.path=http://192.168.0.80:8088/equip/file/
\ No newline at end of file
......@@ -107,6 +107,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
.and()
.authorizeRequests()
.antMatchers("/file/llq/**").permitAll()
.antMatchers("/packageVersion/getVersion","/equip/packageVersion/getVersion").permitAll()//
.antMatchers("/equip/file/llq/**").permitAll()
.antMatchers(HttpMethod.OPTIONS, "/**").permitAll()
// .withObjectPostProcessor(new ObjectPostProcessor<FilterSecurityInterceptor>() {
......@@ -124,7 +125,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
.permitAll()
.and()
.logout()
.logoutUrl("/userLogout")
.logoutUrl("/user/userLogout")
.logoutSuccessHandler(myLogoutHandler)
.deleteCookies("JESSIONID")
.and()
......
......@@ -23,10 +23,6 @@ public class PackageVersion {
@ApiModelProperty("id主键")
private Integer id;
@ApiModelProperty("上一次版本号")
private String oldVersion;
@ApiModelProperty("当前版本号")
private String nowVersion;
private String version;
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论