| | |
| | | // 过滤请求
|
| | | .authorizeRequests()
|
| | | // 对于登录login 注册register 验证码captchaImage 允许匿名访问
|
| | | .antMatchers("/login", "/register", "/captchaImage").anonymous()
|
| | | .antMatchers(
|
| | | HttpMethod.GET,
|
| | | "/",
|
| | | "/*.html",
|
| | | "/**/*.html",
|
| | | "/**/*.css",
|
| | | "/**/*.js",
|
| | | "/profile/**"
|
| | | ).permitAll()
|
| | | .antMatchers("/swagger-ui.html").anonymous()
|
| | | .antMatchers("/swagger-resources/**").anonymous()
|
| | | .antMatchers("/webjars/**").anonymous()
|
| | | .antMatchers("/*/api-docs").anonymous()
|
| | | .antMatchers("/druid/**").anonymous()
|
| | | .antMatchers("/login", "/register", "/captchaImage").permitAll()
|
| | | // 静态资源,可匿名访问
|
| | | .antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll()
|
| | | .antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll()
|
| | | // 除上面外的所有请求全部需要鉴权认证
|
| | | .anyRequest().authenticated()
|
| | | .and()
|
| | |
| | | import javax.validation.constraints.*;
|
| | | import org.apache.commons.lang3.builder.ToStringBuilder;
|
| | | import org.apache.commons.lang3.builder.ToStringStyle;
|
| | | import com.fasterxml.jackson.annotation.JsonIgnore;
|
| | | import com.fasterxml.jackson.annotation.JsonProperty;
|
| | | import com.ruoyi.common.xss.Xss;
|
| | | import com.ruoyi.framework.aspectj.lang.annotation.Excel;
|
| | | import com.ruoyi.framework.aspectj.lang.annotation.Excel.ColumnType;
|
| | |
| | | this.avatar = avatar;
|
| | | }
|
| | |
|
| | | @JsonIgnore
|
| | | @JsonProperty
|
| | | public String getPassword()
|
| | | {
|
| | | return password;
|
| | |
| | | </sql>
|
| | |
|
| | | <select id="selectUserList" parameterType="SysUser" resultMap="SysUserResult">
|
| | | select u.user_id, u.dept_id, u.nick_name, u.user_name, u.email, u.avatar, u.phonenumber, u.password, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, d.dept_name, d.leader from sys_user u
|
| | | select u.user_id, u.dept_id, u.nick_name, u.user_name, u.email, u.avatar, u.phonenumber, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, d.dept_name, d.leader from sys_user u
|
| | | left join sys_dept d on u.dept_id = d.dept_id
|
| | | where u.del_flag = '0'
|
| | | <if test="userId != null and userId != 0">
|