| | |
| | | |
| | | import com.java110.api.filter.JwtFilter; |
| | | import org.springframework.boot.web.servlet.FilterRegistrationBean; |
| | | import org.springframework.boot.web.servlet.MultipartConfigFactory; |
| | | import org.springframework.context.annotation.Bean; |
| | | import org.springframework.context.annotation.Configuration; |
| | | |
| | | import javax.servlet.MultipartConfigElement; |
| | | |
| | | /** |
| | | * Created by wuxw on 2018/5/2. |
| | | */ |
| | | @Configuration |
| | | public class ServiceConfiguration { |
| | | |
| | | @Bean |
| | | public MultipartConfigElement multipartConfigElement() { |
| | | MultipartConfigFactory factory = new MultipartConfigFactory(); |
| | | //文件最大 |
| | | factory.setMaxFileSize(1024*1024*50); //KB,MB |
| | | /// 设置总上传数据总大小 |
| | | factory.setMaxRequestSize(1024*1024*50); |
| | | return factory.createMultipartConfig(); |
| | | } |
| | | @Bean |
| | | public FilterRegistrationBean jwtFilter() { |
| | | StringBuffer exclusions = new StringBuffer(); |
| | | exclusions.append("/app/carInout.*,"); |
| | | exclusions.append("/callComponent/login/*,"); |
| | | exclusions.append("/secondaryFeeTypeCdGl/*,"); |
| | | exclusions.append("/app/ext/992020051967020024/query_token,"); |
| | | exclusions.append("/callComponent/register/*,"); |
| | | exclusions.append("/callComponent/validate-code/*,"); |
| | |
| | | exclusions.append("/app/loginOwner,");// 业主APP登录跳过 |
| | | exclusions.append("/app/loginOwnerByKey,");// 根据key登录业主 |
| | | exclusions.append("/app/user.ownerUserLogin,");// 业主登录(新) |
| | | exclusions.append("/app/login.phoneWechatLogin,");// 微信一键登陆 |
| | | exclusions.append("/app/area.listAreas,");// 加载地区 |
| | | exclusions.append("/app/community.listCommunitys,");// 加载小区 |
| | | exclusions.append("/app/user.userSendSms,");// 发送短信验证码 |
| | |
| | | exclusions.append("/app/fee.queryFeeDetail,");// 缴费明细 |
| | | exclusions.append("/app/payment.getNativeQrcodePayment,");// 获取二维码信息 |
| | | exclusions.append("/app/fee.listOwnerTelOweFee,");// 根据手机号查询欠费 |
| | | exclusions.append("/app/mall.queryCommunityRecommend,");// 查询小区推荐 |
| | | exclusions.append("/app/file/userfile/download/*,");// 下载文件 |
| | | |
| | | |
| | | |
| | | exclusions.append("/app/reportInfoAnswer/queryReportInfoAnswerByOpenId"); |
| | | |