E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
stereotype
springboot开启异步任务@Async,@EnableAsync
importorg.springframework.scheduling.annotation.Async;importorg.springframework.scheduling.annotation.AsyncResult;importorg.springframework.
stereotype
.Component
八轮Baron
·
2020-07-15 06:23
springboot
pro JPA2 第九章--条件API 子查询 示例代码
*;importorg.springframework.data.repository.query.Param;importorg.springframework.
stereotype
.Service;
vcfriend
·
2020-07-15 02:57
Spring
Data
Jpa
学习笔记
SpringBoot配置拦截器实现AOP
总结起来就是三步,作为记录:1、创建拦截器类,实现HandlerInterceptor接口packagecom.example.demo.interceptor;importorg.springframework.
stereotype
.Component
Hello_Error
·
2020-07-15 01:12
后端
[SpringMVC]夹带请求参数该如何操作@RequestParam/POJO对象绑定请求参数/原生ServletAPI
可以写上【required=false】属性如果参数为int,可以写上defalutValue="0"即可packagecom.yiki.Handle;importorg.springframework.
stereotype
.Contro
帕尼尼270
·
2020-07-14 19:08
SpringMVC
web开发中遇到的问题
SpringMVCModelAndView视图解析器解析不到正确的jsp,而是去解析"请求路径"+jsppackagepers.youtoo.controller;importorg.springframework.
stereotype
.Controller
你本来就很二
·
2020-07-14 17:40
java
web
springmvc的请求转发和重定向使用 (ModelAndView)
packagecom.itheima.web.controller;importorg.springframework.
stereotype
.Controller;importorg.springframework.web.bind.annotation.RequestMapping
qq_26514509
·
2020-07-14 17:30
Spingmvc
@component使用案例
案例:packagecom.aa;importorg.springframework.
stereotype
.Component;importcom.introduce.Model.User2;@Component
小爷欣欣
·
2020-07-14 09:36
SpringBoot整合Shiro(一) 拦截与放行
拦截与放行一、目录结构:二、详细代码helloController.javapackagecom.example.shiro.controller;importorg.springframework.
stereotype
.Controller
YUEXILIULI
·
2020-07-14 06:29
Springboot
JPQL联表查询,返回结果整合联表的两个实体结果
;importjavax.persistence.PersistenceContext;importjavax.persistence.Query;importorg.springframework.
stereotype
.Ser
LQW_home
·
2020-07-14 05:20
JPA
Java上传视频
controllerimportjavax.servlet.http.HttpServletRequest;importmodel.FileEntity;importorg.springframework.
stereotype
.Controller
weixin_30824479
·
2020-07-13 17:51
Spring Boot 2.x以后static下面的静态资源被拦截
importorg.springframework.
stereotype
.Component;importorg.springframework.web.servlet.config.annota
weixin_30463341
·
2020-07-13 17:43
RedisUtil工具类 添加,获取缓存
importorg.slf4j.LoggerFactory;importorg.springframework.data.redis.core.RedisTemplate;importorg.springframework.
stereotype
.Component
KIN_DIN
·
2020-07-13 11:20
Redis存储
java读取properties文件转map数据
packagecom.zhong.zhongdemo.service;importorg.springframework.
stereotype
.Componen
毅香雪海
·
2020-07-13 10:35
#
java工具类
java
springboot与vue 集成 websocket方法
importcom.wpg.common.entity.ticket.TicketMessage;importlombok.extern.slf4j.Slf4j;importorg.springframework.
stereotype
.Component
流水随清风
·
2020-07-13 10:45
SpringBoot
Vue
Java
Java-生成唯一ID(Sequence)
packagecom.bootdo.common.utils;importorg.springframework.
stereotype
.Component;importjava.util.concurrent.locks.Lock
張子布
·
2020-07-13 10:44
生成加减乘的验证码
个数字的加减乘得到的结果存入redis或session中进行验证闲话少说,直接上代码:1)service代码:packagecom.xiao.service;importorg.springframework.
stereotype
.Service
qq_25091649
·
2020-07-13 09:24
JAVA验证码生成包括(包括算数计算值和纯char验证)
importcom.google.code.kaptcha.Constants;importcom.google.code.kaptcha.Producer;importorg.springframework.
stereotype
.Controller
小哥哥学编程
·
2020-07-12 22:16
Java技巧
Exception包装类
packagecom.mmall.common;importorg.slf4j.Logger;importorg.slf4j.LoggerFactory;importorg.springframework.
stereotype
.Component
zhang_xue_bing
·
2020-07-12 19:32
SpringMVC
全局异常处理
缓存
先去缓存中查,如果没有存到缓存中简单的map缓存(缓存就是键值对)packagecom.kaishengit.utils.cache;importorg.springframework.
stereotype
.Repository
wanggs
·
2020-07-12 19:30
SpringBoot实现Excel表格数据读取并将数据添加到相应数据库(Mybatis实现)
importjavax.servlet.http.HttpSession;importorg.springframework.beans.factory.annotation.Autowired;importorg.springframework.
stereotype
.Controller
LANG-ITTECHNOGY
·
2020-07-12 13:06
java
jsp传递值到后台controller
packagecom.ly.springmvc.handers;importjavax.servlet.http.HttpServletRequest;importorg.springframework.
stereotype
.Controller
林逗哥
·
2020-07-12 10:12
springMvc
SpringMVC的那点事儿 三(@PathVariable)
页面index.jsptestPathVariable测试class如下:packagecom.atguigu.springmvc.handlers;importorg.springframework.
stereotype
.Controller
bfx1000
·
2020-07-11 23:01
SpringMVC中的文件上传与下载
当中要注册一个上传解析器准备一个上传的页面Title上传成功,文件:${fileName}后台处理packagecom.xy.controller;importorg.springframework.
stereotype
.Controller
溜了溜了AA
·
2020-07-11 22:52
Spring
spring注解 @Scheduled(cron = "0 0 1 * * *")的使用来实现定时的执行任务
importcom.activityvip.api.service.SecurityBlockAccountService;importorg.springframework.beans.factory.annotation.Autowired;importorg.springframework.
stereotype
.Servi
常敲代码手不生
·
2020-07-11 22:53
Spring
log4j
测试log4jController:packagecom.huweiyang.log4j;importorg.apache.log4j.Logger;importorg.springframework.
stereotype
.Controller
路人甲ii
·
2020-07-11 18:36
Spring 错误There was an unexpected error (type=Internal Server Error, status=500)解决方法
packagecom.example.demo.controller;importorg.springframework.
stereotype
.Controller;importorg.springframework.ui.Model
染子尘
·
2020-07-11 18:34
layui图片上传
importjava.util.HashMap;importjava.util.Map;importjavax.servlet.http.HttpServletRequest;importorg.springframework.
stereotype
.Controller
逐梦s
·
2020-07-11 16:28
java
layui
springboot使用静态变量获取yml配置值
packagecom.currency.tbyoung.utils;importorg.springframework.beans.factory.annotation.Value;importorg.springframework.
stereotype
.Component
TByoung
·
2020-07-11 15:23
java
spring
boot
spring 注解方式创建对象
1、在创建的类上面使用注解User.javapackagework.zhangdoudou.anno;importorg.springframework.
stereotype
.Component;@Component
DouDouZH
·
2020-07-11 02:17
layui后台接收图片的多文件上传并根据时间生成随机名
packagecom.action;importcn.hutool.json.JSONObject;importcom.mysql.jdbc.CharsetMapping;importorg.springframework.
stereotype
.Controller
STAR_TOWER
·
2020-07-10 23:45
SpringBoot框架中使用Mybatis连接数据库是遇到问题以及解决
importorg.springframework.
stereotype
.Repository;@Repository问题2:安装MySQL8.0之后,并没有设置密码,用nav
ailuyi
·
2020-07-10 16:25
SpringBoot异步任务, 以及带返回值的异步任务(@Async 不起作用的原因)
controller层写一个测试方法调用时间返回的接口,直接调用,下面是service层代码部分packagecom.zz.amqp1.service;importorg.springframework.
stereotype
.Service
晴天小哥哥
·
2020-07-10 09:54
多线程
SpringBoot
SpringBoot
SpringMVC的几种返回方式
packagecom.boventech.learning.controller;importjava.util.HashMap;importjava.util.Map;importorg.springframework.
stereotype
.Controller
sunhuwh
·
2020-07-10 02:09
#
spring
mvc
E-learning
#
java
SpringMVC Model、ModelMap和ModelAndView的区别和用法
packagecom.learndemo.controller;importjava.util.HashMap;importjava.util.Map;importorg.springframework.
stereotype
.Controller
茴香豆的茴有六种写法
·
2020-07-10 01:56
spring
@ResponseBody
举个例子:packagecom.imooc.mvcdemo.controller;importorg.springframework.
stereotype
.Controller;import
Robert Wang
·
2020-07-10 00:25
常见错误解决
Java合集
BaseService
importjava.util.List;importorg.springframework.beans.factory.annotation.Autowired;importorg.springframework.
stereotype
.Service
YingZiBo
·
2020-07-09 20:32
问题记录
Spring MVC的标签库——form和input
一控制器packageorg.fkit.controller;importorg.fkit.domain.User;importorg.springframework.
stereotype
.Controller
cakincheng
·
2020-07-09 14:34
Spring
MVC
Spring Boot中过滤器Filter具体实现
packagecom.lay.spring.filter.demo01;importorg.slf4j.Logger;importorg.slf4j.LoggerFactory;importorg.springframework.
stereotype
.Component
Sadlay
·
2020-07-09 12:38
Spring
Boot
java集成高德地图(干货)
importcom.alibaba.fastjson.JSONArray;importcom.alibaba.fastjson.JSONObject;importorg.springframework.
stereotype
.Component
OrdinaryLi
·
2020-07-09 11:53
java集成高德地图
java-拦截器实现跨域支持
packagecom.test.test.conf;importorg.springframework.
stereotype
.Component;importjavax.servlet.
zpf0918
·
2020-07-09 06:47
freemarker取值问题
packagecom.hd.controller;importjava.util.Date;importorg.springframework.
stereotype
.Controller;importorg.springframework.web.bind.annotation.RequestMapping
ssttIsme
·
2020-07-09 05:38
解决跨域配置
importorg.springframework.
stereotype
.Component;importjavax.servlet.
zhang_rk
·
2020-07-09 05:54
skill
获取Spring容器中Bean实例的工具类(Java泛型方法实现)
importorg.springframework.beans.factory.BeanFactory;importorg.springframework.beans.factory.BeanFactoryAware;importorg.springframework.
stereotype
.Service
卢艳亮
·
2020-07-09 03:20
Spring
SpringBoot学习(常见的几种获取配置文件数据方式)
application.yml配置文件中配置如下属性//例如在application.yml文件中配置如下属性name:testName1.2通过@Value获取配置文件属性的数据值//@org.springframework.
stereotype
.ServicepublicclassDemoServiceImplimplementsDemoServi
不拘于世的正义感正能量
·
2020-07-08 23:43
SpringBoot
java
SpringAop使用XML文件方式
packageCalc;importorg.springframework.
stereotype
.Component;importorg.springframework.
stereotype
.Controller
单线程患者
·
2020-07-08 21:04
Java
Aop注解方式
packageCalc;importorg.springframework.
stereotype
.Component;importorg.springframework.
stereotype
.Controller
单线程患者
·
2020-07-08 21:04
Java
springboot的yml配置文件使用示例
importorg.springframework.boot.context.properties.ConfigurationProperties;importorg.springframework.
stereotype
.Component
菜鸟的自我素养
·
2020-07-08 21:13
java
spring
springboot
字符串随机生成工具类
packagecom.gblfy.util;importorg.springframework.
stereotype
.Component;importjava.util.ArrayList;importjava.util.Arrays
gblfy
·
2020-07-08 19:46
Java
字符串生成
通过CountDownLatch工具类,模拟高并发
packagecom.cdy.wx.thread;importorg.slf4j.Logger;importorg.slf4j.LoggerFactory;importorg.springframework.
stereotype
.Service
weixin_38165486
·
2020-07-08 18:26
java
SpringMVC中使用forward和redirect进行转发和重定向以及重定向时如何传参详解
比如可以这样使用:package cn.zifangsky.controller;import org.springframework.
stereotype
.Controller;import org.springframework.web.b
weixin_33694172
·
2020-07-08 15:01
上一页
10
11
12
13
14
15
16
17
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他