¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.lf.server.controller.data; |
| | | |
| | | import com.lf.server.controller.all.BaseController; |
| | | import com.lf.server.service.sys.TokenService; |
| | | import io.swagger.annotations.Api; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | /** |
| | | * æ°æ®å
¥åº |
| | | * @author WWW |
| | | */ |
| | | @Api(tags = "æ°æ®ç®¡ç\\æ°æ®å
¥åº") |
| | | @RestController |
| | | @RequestMapping("/dataLoader") |
| | | public class DataLoaderController extends BaseController { |
| | | @Autowired |
| | | TokenService tokenService; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.lf.server.controller.data; |
| | | |
| | | import com.lf.server.controller.all.BaseController; |
| | | import com.lf.server.service.sys.TokenService; |
| | | import io.swagger.annotations.Api; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | /** |
| | | * æ°æ®ä¸ä¼ |
| | | * @author WWW |
| | | */ |
| | | @Api(tags = "æ°æ®ç®¡ç\\æ°æ®ä¸ä¼ ") |
| | | @RestController |
| | | @RequestMapping("/dataUpload") |
| | | public class DataUploadController extends BaseController { |
| | | @Autowired |
| | | TokenService tokenService; |
| | | } |
| | |
| | | /** |
| | | * å¯ç æ£åè¡¨è¾¾å¼ |
| | | */ |
| | | public static final String PWD_REG = "^(?![a-zA-Z]+$)(?![A-Z0-9]+$)(?![A-Z\\W!@#$%^&*`~()\\-_+=,.?;<>]+$)(?![a-z0-9]+$)(?![a-z\\W!@#$%^&*`~()\\-_+=,.?;<>]+$)(?![0-9\\W!@#$%^&*`~()\\-_+=,.?;<>]+$)[a-zA-Z0-9\\W!@#$%^&*`~()\\-_+=,.?;<>]{8,20}$"; |
| | | public static final String PWD_REG = "^(?![a-zA-Z]+$)(?![A-Z0-9]+$)(?![A-Z\\W!@#$%^&*`~()\\-_+=,.?;<>]+$)(?![a-z0-9]+$)(?![a-z\\W!@#$%^&*`~()\\-_+=,.?;<>]+$)(?![0-9\\W!@#$%^&*`~()\\-_+=,.?;<>]+$)[a-zA-Z0-9\\W!@#$%^&*`~()\\-_+=,.?;<>]{12,20}$"; |
| | | } |
| | |
| | | /** |
| | | * 读åExcel |
| | | */ |
| | | private KeyValueEntity readExcel(String fileName, String entity) { |
| | | private KeyValueEntity readExcel(String fileName, String entityName) { |
| | | File f = new File(fileName); |
| | | if (!f.exists() || f.isDirectory()) { |
| | | return null; |
| | |
| | | return kv; |
| | | } |
| | | |
| | | // |
| | | |
| | | /** |
| | | * è·ååæ° |
| | | * Enumeration<String> headers = req.getHeaderNames(); |
| | |
| | | <div class="loginid" style='width: 400px; margin-right: 50px; margin-top: 45px; border-bottom: 1px solid #fff;'> |
| | | <label for="username"></label> |
| | | <input class="required" id="username" placeholder="请è¾å
¥ç¨æ·å" size="20" tabindex="1" |
| | | type="text" accesskey="n" autocomplete="off" name="username" value="" /> |
| | | type="text" accesskey="n" autocomplete="off" name="username" value="admin" /> |
| | | </div> |
| | | <!-- å¯ç --> |
| | | <section> |
| | |
| | | // å¯ç æ¯å¦åè§ |
| | | function isValid(pwd) { |
| | | if (pwd) { |
| | | var regex = new RegExp('^(?![a-zA-Z]+$)(?![A-Z0-9]+$)(?![A-Z\W!@#$%^&*`~()\\-_+=,.?;<>]+$)(?![a-z0-9]+$)(?![a-z\W!@#$%^&*`~()\\-_+=,.?;<>]+$)(?![0-9\W!@#$%^&*`~()\\-_+=,.?;<>]+$)[a-zA-Z0-9\W!@#$%^&*`~()\\-_+=,.?;<>]{8,20}$'); |
| | | var regex = new RegExp('^(?![a-zA-Z]+$)(?![A-Z0-9]+$)(?![A-Z\W!@#$%^&*`~()\\-_+=,.?;<>]+$)(?![a-z0-9]+$)(?![a-z\W!@#$%^&*`~()\\-_+=,.?;<>]+$)(?![0-9\W!@#$%^&*`~()\\-_+=,.?;<>]+$)[a-zA-Z0-9\W!@#$%^&*`~()\\-_+=,.?;<>]{12,20}$'); |
| | | return regex.test(pwd) |
| | | } |
| | | return false; |