其他
Roue治愈者ヅ聶
这个作者很懒,什么都没留下…
展开
-
Java实现图片传输给前端展示(接口方式)
前端调用此接口获取图片:public void getPersonPic(String picName, HttpServletResponse response) throws IOException { ServletOutputStream outputStream = null; try { byte[] bytes = getPic(picName); outputStream = response.getOutputStream(); .原创 2021-11-30 16:46:37 · 8817 阅读 · 3 评论 -
IP库GeoLite2-City.mmdb的使用
引入GeoLite2-City库的依赖。<dependency> <groupId>com.maxmind.geoip2</groupId> <artifactId>geoip2</artifactId> <version>2.12.0</version></dependency>public void test01() throws Exception { .原创 2021-11-30 15:23:05 · 2019 阅读 · 0 评论