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
Springframework
Spring常用注解详解(一)
1、@Value此注解是
SpringFramework
中用于从外部属性源(例如配置文件、环境变量)中注入值到SpringBean中的注解。
户伟伟
·
2023-12-15 05:29
Spring
spring
chrome
java
1.“简阅”——用户登录功能(1)
1登录功能后端实现1.1创建数据库db_jianyue,新建用户数据表t_userimage.png自行准备数据1.2IDEA中新建jianyue-api项目1.3pom.xml文件4.0.0org.
springframework
.bootspring-boot-starter-parent2.1.3
1只念旧的兔子
·
2023-12-15 03:41
由@EnableWebMvc注解引发的Jackson解析异常
forservlet[dispatcherServlet]incontextwithpath[]threwexception[Requestprocessingfailed;nestedexceptionisorg.
springframework
.http.converter.HttpMessage
文安初心忆往昔
·
2023-12-15 02:14
spring
spring
boot
springboot+shiro(session管理)(一)简单实例
springboot+dubbo+shiro(sessin管理),dubbo服务部分就不看了一、代码:1、pom:4.0.0org.exampleshiro-session1.0-SNAPSHOTorg.
springframework
.bootspring-boot-starter-parent1.4.1
w_t_y_y
·
2023-12-15 01:38
spring
boot
后端
java
shiro入门demo(一)身份验证
搭建springboot项目,引入shiro和单元测试依赖:org.
springframework
.bootspring-boot-starter-weborg.
springframework
.bootspring-boot-starter-testtestorg.apache.shiroshiro-core1.2.2
w_t_y_y
·
2023-12-15 01:22
java
spring
spring
boot
mongoTemplate注入为null
单元测试,使用@Resource或@Autowired注入的对象为空,解决办法1.依赖 org.
springframework
.boot spring-boot-starter-data-mongodb
冯宝宝^
·
2023-12-15 00:56
实战项目
mongodb
数据库
Springboot整合RedisUtil类
1,创建springboot项目2,引入依赖org.
springframework
.bootspring-boot-starter-data-redis3,在application.yml配置redis
冯宝宝^
·
2023-12-15 00:25
进阶技术
spring
boot
java
eureka
配置应用程序监听器[org.
springframework
.web.context.ContextLoaderListener]错误
首先查看自己的配置文件(我maven项目)web.xml(内容除了文件的配置位置外,是否有其他的不同)springmvcorg.
springframework
.web.servlet.DispatcherServletcontextConfigLocationclasspath
五敷有你
·
2023-12-14 23:14
spring
java
spring
maven
Springboot jar包项目大瘦身
2.抽取公共jar包修改pom文件,添加插件org.
springframework
.bootspring-boot-maven-pluginorg.
springframework
.bootspring-boot-ma
Ocean@上源码
·
2023-12-14 22:35
Java
spring
boot
jar
maven
springboot2.x与redis集成
一、创建mavn工程4.0.0org.
springframework
.bootspring-boot-starter-parent2.4.2com.jyjspringboot-redis0.0.1-SNAPSHOTspringboot-redisDemoprojectforSpringBoot11org.
springframework
.bootspring-boot-starter-data-re
蒋增奎
·
2023-12-14 22:55
redis
数据库
缓存
Spring-Java配置版本
依赖org.
springframework
spring-context5.3.18实体类//@Component:注册到Spring容器中,@Controller、@Repository、@Service
flash20230513
·
2023-12-14 22:17
spring
Springboot+AOP+注解实现字段AES+Base64加解密
让代码简洁,方便具体实现如下:1、依赖org.
springframework
.bootspring-boot-starter-weborg.projectlomboklomboktrueorg.
springframework
.bootspri
WalkerShen
·
2023-12-14 22:16
springboot系列
AOP
spring
boot
java
后端
SpringMVC-注解版本
依赖org.
springframework
spring-webmvc5.1.9.RELEASEjavax.servletservlet-api2.5web.xmlspringmvcorg.
springframework
.web.servlet.DispatcherServletcontextConfigLocationclasspath
flash20230513
·
2023-12-14 22:42
mvc
easyexcel导出报错 java.lang.NoClassDefFoundError: org/apache/poi/POIXMLTypeLoader
报错:org.
springframework
.web.util.NestedServletException:Handlerprocessingfailed;nestedexceptionisjava.lang.NoClassDefFoundError
Superwwz
·
2023-12-14 21:25
编码笔记
java
apache
开发语言
tiles-api-2.0.4 升级tiles3.0.8遇到的问题
首先更改web.xml,以下是我项目完整的web.xml(struts2.5.30+tiles3.0.8)项目名字org.
springframework
.web.context.ContextLoaderListenercontextConfigLocationclasspath
往事不堪回首..
·
2023-12-14 20:30
java
tiles
升级
4.cloud-OpenFeign服务接口调用
https://github.com/spring-cloud/spring-cloud-openfeign1.consul使用步骤1.1pomorg.
springframework
.cloudspring-cloud-starter-openfeignorg.
springframework
.cloudspring-cloud-starter-consul-discovery1.2ymlserve
wang_peng
·
2023-12-14 20:42
SpringCloud
java
开发语言
3.cloud-Consul服务注册与发现
1.官网https://learn.hashicorp.com/consul/getting-started/install.html2.订单服务2.1POMorg.
springframework
.cloudspring-cloud-starter-consul-discovery2.2YMLserver
wang_peng
·
2023-12-14 20:41
SpringCloud
consul
在Spring Cloud中使用OpenFeign完成从一个微服务上传到另一个微服务中
在pom.xml文件中添加以下依赖:org.
springframework
.bootspring-boot-starter-webor
Miaow.Y.Hu
·
2023-12-14 20:38
#
Spring
spring
cloud
微服务
spring
boot
2.cloud-Eureka服务注册与发现
1.Eureka单点1.1建Module1.2POMorg.
springframework
.bootspring-boot-starter-weborg.
springframework
.bootspring-boot-starter-actuatororg.
springframework
.cloudspring-cloud-starter-netflix-eureka-server1.3Ymlse
wang_peng
·
2023-12-14 20:57
SpringCloud
eureka
云原生
如何从eureka-server上进行服务发现,负载均衡远程调用服务
在springcloud的maven的pom文件中添加eureka-client的依赖坐标org.
springframework
.cloudspring-cloud-starter-netflix-eureka-client
upton-nan
·
2023-12-14 20:17
spring
cloud
eureka
服务发现
负载均衡
Spring Integration接收TCP与UDP请求
SpringIntegration基于
SpringFramework
构建,使开发者能够更容易地将不同的系统、应用程序和服务整合到一个协调的整体中。SpringI
softshow1026
·
2023-12-14 19:19
spring
tcp/ip
udp
SpringBoot集成系列--Kakfa
couldnotbeestablished.Brokermaynotbeavailable2、Errorwhilefetchingmetadatawithcorrelationidxxx一、代码1、添加依赖在pom.xml文件中添加Kafka的依赖org.
springframework
.kafkasp
程序员Forlan
·
2023-12-14 19:16
中间件
spring
boot
后端
kafka
Mybatis-Plus源码解析之MybatisPlusAutoConfiguration(二)
Spring则可以在配置类上@Import(MybatisPlusAutoConfiguration.class)org.
springframework
.boot.autoconfigure.EnableAutoConfiguration
Code A Better Life
·
2023-12-14 18:35
MybatisPlus
mybatis
java
开发语言
spring
后端
spring
boot
spring
cloud
【rabbitMQ】springboot整合rabbitMQ模拟简单收发消息
创建项目和模块2.添加rabbitMQ依赖3.启动rabbitMQ服务4.引入rabbitMQ服务端信息5.通过单元测试模拟业务发送消息6.接收消息1.创建项目和模块2.添加rabbitMQ依赖org.
springframework
.bootspring-boot-starter-amqp3
freedomSTUDENT
·
2023-12-14 17:20
rabbitMQ
SpringBoot
spring
boot
java-rabbitmq
rabbitmq
在idea中spring boot热部署不生效
在IDEA中如何使用spring的热部署1、添加maven依赖org.
springframework
.bootspring-boot-devtoolstruetrue2、插件配置org.
springframework
.bootspring-boot-maven-plugintruetrue
wallany
·
2023-12-14 17:46
成功解决 Plugin ‘org.
springframework
.boot:spring-boot-maven-plugin:‘ not found
Plugin‘org.
springframework
.boot:spring-boot-maven-plugin:‘notfound的解决方案,亲测可用!
暴怒的代码
·
2023-12-14 17:00
后端知识
maven
java
spring
boot
springboot Caffeine 详解(一篇就明白)
com.github.ben-manes.caffeinecaffeine2.6.2org.
springframework
spring-context-support5.1.10.RELEASE2、springboot
讲不出 再见
·
2023-12-14 16:54
Java
spring
Caffeine
springboot
Cacheable
CacheManager
原理
@EventListener工作原理
@EventListener是
SpringFramework
提供的用于处理事件监听的注解。
鲨鱼辣椒不吃辣c
·
2023-12-14 15:25
spring
boot
后端
java
IDEA版SSM入门到实战(Maven+MyBatis+Spring+SpringMVC) -Spring依赖注入方式
Spring依赖注入方式【基于XML】为属性赋值方式通过xxxset()方法通过构造器反射1.1set注入语法:1.2构造器注入语法:1.3p名称空间注入导入名称空间:xmlns:p=“http://www.
springframework
.org
ZCY5202015
·
2023-12-14 12:47
intellij-idea
maven
mybatis
spring
SpringMVC修炼之旅(2)基础入门
一、第一个程序1.1环境配置略1.2代码实现packagecom.itheima.controller;importorg.
springframework
.stereotype.Controller;importorg.
springframework
.web.bind.annotation.RequestMapping
烟雨平生9527
·
2023-12-07 01:34
大数据
Invalid mime type “application/json; utf-8=“: ‘value‘ must not be empty解决方法
遇到一个很奇怪的问题org.
springframework
.http.InvalidMediaTypeException:Invalidmimetype"application/json;utf-8="
猛浩
·
2023-12-07 00:25
Java
异常记录及解决方法
源码分析
json
java
spring
redis+springsecurity+mybtais-plus+JWT
redis+springsecurity+mybtais-plus+JWT01引入依赖org.
springframework
.bootspring-boot-starter-webcom.mysqlmysql-connector-jruntimeorg.projectlomboklomboktrueorg.
springframework
.bootspring-boot-starter-testte
宣布无人罪
·
2023-12-06 23:27
mybatis-plus
redis
数据库
缓存
spring
boot
Redis 反序列化失败
文章目录问题原序列化配置修改配置解决方法问题com.fasterxml.jackson.databind.exc.MismatchedInputException:Cannotconstructinstanceoforg.
springframework
.security.core.authority.SimpleGrantedAuthority
日常忘记笔记
·
2023-12-06 23:17
笔记
java
RestTemplate发送application/x-www-form-urlencoded格式的post请求
RestTemplate的postForEntity方法,以下是代码示例packageorg.springblade.test;importcom.alibaba.fastjson.JSON;importorg.
springframework
.http
齐穗穗
·
2023-12-06 22:32
Java
java
JPA使用原生SQL查询
2019独角兽企业重金招聘Python工程师标准>>>一、Spring3.1之前版本的方法importorg.
springframework
.context.ApplicationContext;importorg.
springframework
.orm.jpa.support.JpaDaoSupport
weixin_33857679
·
2023-12-06 22:21
java
python
数据库
org.
springframework
.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘his
错误信息:org.
springframework
.beans.factory.UnsatisfiedDependencyException:Errorcreatingbeanwithname'historyService'definedinfile
Myovlmx
·
2023-12-06 22:49
java
spring
boot
后端
java
Springboot整合Cache缓存组件(Redis,Caffine,Jetcache,EhCache等)
分布式缓存–【这里省略会有专题介绍】caffine内存缓存插件jetcache2双缓存插件memcached缓存插件ehcache缓存插件一、spring-boot-cache快速入门1、添加依赖org.
springframework
.bootspring-boot-st
天道酬勤的博客
·
2023-12-06 20:10
Springboot项目基础
缓存
redis
spring
boot
Eureka-Client 服务注册
【单机版】pom文件:org.
springframework
.cloudspring-cloud-starter-netflix-eureka-clientorg.
springframework
.bootspring-boot-starter-web
喽喽喽被使用
·
2023-12-06 19:33
使用Druid数据库连接池并进行多数据源配置
现在用阿里的Druid进行集成添加依赖:com.alibabadruid-spring-boot-starter1.1.22org.
springframework
.bootspring-boot-starter-aop2.4.4
头发茂密的老王
·
2023-12-06 19:06
Spring Cloud Feign 调用微服务传递header请求头
FeignConfig配置类packagecom.pojo.common.core.config;importfeign.RequestInterceptor;importorg.
springframework
.context.annotation.Bean
非ban必选
·
2023-12-06 19:50
SpringCloud
spring
cloud
微服务
spring
【OAuth2】【Feign】微服务调用oauth2服务器的接口
背景本项目是oauth2的资源服务器2,同时也是客户端所调用接口的项目是oauth2的授权服务器,同时也是资源服务器1依赖...org.
springframework
.cloudspring-cloud-starter-openfeignorg.
springframework
.bootspring-boot-starter-securityorg.
springframework
.security
lorogy
·
2023-12-06 19:14
微服务
java定时框架quartz在调用其他微服务模块时报错(非web请求使用feign完成微服务调用)
异常信息org.
springframework
.beans.factory.BeanCreationException:Errorcreatingbeanwithname'scopedTarget.oauth2ClientContext
Andanc
·
2023-12-06 19:43
项目出错集合
java
微服务
其他
Do not use @ for indentation 异常(多环境配置)
pom.xml配置:org.
springframework
.bootspring-boot-maven-pluginorg.apache.maven.pluginsmaven-surefire-plugin2.20truesrc
Sun_逸圣
·
2023-12-06 19:30
java
java
maven
spring
SpringBoot整合Redis及简单使用
application.properties文件三.新建一个User对象(可省略)四.简单测试五.总结一.Pom文件导入依赖主要是Redis的依赖,还使用了hutool工具来转Json(可省略)org.
springframework
.bootspring-boot-starter-data-r
孟游
·
2023-12-06 18:01
Redis
Java
Spring
redis
java
spring
spring
boot
后端
Error processing condition on org.
springframework
.cloud.netflix.feign.ribbon.FeignRibbonClientAutoCo
报错信息:java.lang.IllegalStateException:Errorprocessingconditiononorg.
springframework
.cloud.netflix.feign.ribbon.FeignRibbonClientAutoConfiguration.feignClientatorg.
springframework
.boot.autoconfigure.con
IT·侯老师
·
2023-12-06 17:31
开发日记
.net
ribbon
spring
cloud
SpringBoot面试题:(一)SpringBoot自动装配原理源码解析
源码研究SpringBoot启动类:@SpringBootApplication注解importorg.
springframework
.boot.SpringApplication;importorg.
springframework
.boot.autoconfigure.SpringBootApplication
青铜爱码士
·
2023-12-06 16:21
spring
boot
后端
java
springcloud==openfeign
单独使用创建一个服务端importorg.
springframework
.boot.SpringApplication;importorg.
springframework
.boot.autoconfigure.SpringBootApplication
一个java开发
·
2023-12-06 14:10
spring
cloud
spring
cloud
idea利用SpringMVC框架整合ThymeLeaf
.controller指定html文件:我们访问http://localhost:8080/testpackagecom.example.appledemo.controller;importorg.
springframework
.stereotype.Controller
XFox_
·
2023-12-06 13:26
intellij-idea
java
ide
springboot 以war包形式运行
1.将springboot默认的tomcat禁用org.
springframework
.bootspring-boot-starter-tomcatprovided2.添加一个不为人知的插件org.apache.maven.pluginsmaven-surefire-plugin2.4.2true3
唯爱米
·
2023-12-06 12:10
SpringBoot工程实现aop进行日志记录
准备工作0.建议了解一下aop的一些知识,以下代码是基于注解进行aop开发(你也可以基于xml进行开发原理一样)1.导入aop的坐标org.
springframework
.bootspring-boot-star
学不会Java的陈同学
·
2023-12-06 12:07
spring
boot
java
mybatis
上一页
59
60
61
62
63
64
65
66
下一页
按字母分类:
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
其他