随笔分类 - SpringBoot
SpringBoot学习及碰到的问题
摘要:用下列命令启动jar 包: java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 -jar test.jar 配置好后:Run-Debug 选择刚才配置的名字
阅读全文
摘要:Sun Apr 16 08:15:36 CST 2023There was an unexpected error (type=Internal Server Error, status=500).PreparedStatementCallback; SQL [select userId from
阅读全文
摘要:在 Spring Boot JPA 中,可以通过自定义 AttributeConverter 类来实现数据库字段的加密存储。 AttributeConverter 是 JPA 2.1 中引入的一个接口,用于在实体属性和数据库列之间进行转换。我们可以继承 AttributeConverter 接口并实
阅读全文
摘要:Springboot 中 主模块引用其他模块的Controller url路径总是不生效 其他无关影响:主要有spring security 有权限过滤器影响、还有token的影响。 找问题方法: 使用了对比两个模块不同的Controller 接口 发现只多两行日志: 2023-02-26 09:3
阅读全文
摘要:1、java -jar demo.jar说明:用这种方法启动后,不能继续执行其它命令了,如果想要继续执行其它命令,就都打断,打断一般用ctrl+c。 2、java -jar demo.jar &第2种在第1种方式的基础上在命令的结尾增加了&,&表达的意思是在后台运行。这种方式可以避免打断后程序停止的
阅读全文
摘要:spring security social 访问 http://auth.xxx.com/api/auth/wxgzh 时报错: Whitelabel Error Page This application has no explicit mapping for /error, so you ar
阅读全文
摘要:报下面错我的原因是: security.oauth2.client.clientId =security.oauth2.client.clientSecret =这个两个值配置错误 org.springframework.beans.factory.UnsatisfiedDependencyExce
阅读全文
摘要:在springboot项目中出现Consider defining a bean of type ‘xxx’ in your configuration.的原因,是因为无法识别相应的bean,无法完成注入。解决办法有:1.检查实现类上是否添加@Service 2.实体类上是否添加@Component
阅读全文
摘要:属性配置其上层的属性类就可以了,而不是Autowired下层 引用:https://blog.csdn.net/luoluo95/article/details/125263985 类似于此类问题出现此情况有多种解决方法 文章目录解决1:启动类位置解决方法 :将启动类或者要注入的类放到启动类的同级或
阅读全文
摘要:springboot thymeleaf 后端 全局变量 pom.xml 中: <!-- google java lib --> <dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> <vers
阅读全文
摘要:autowired WebSecurityConfigurerAdapter 中注册 过滤器时报下面错误: Could not autowired. Not beans of "XXXFilter" type found. 解决方法: 是在过滤器类上加一个 @Component Could not
阅读全文
摘要:如果没有测试目录的按这个文档新建:https://www.csdn.net/tags/NtzaggxsNDA0NTYtYmxvZwO0O0OO0O0O.html 主要: 1、File->project Structer 点击文件,打开项目结构2、Modules–>Sources–>main右键–>N
阅读全文
摘要:引用:https://www.cnblogs.com/passedbylove/p/11466584.html https://repo.jenkins-ci.org/releases/com/sun/winsw/winsw/ IDEA 下 Maven 打包 1、多项目注意打包报错:Could no
阅读全文
摘要:引用:https://stackoverflow.com/questions/50405838/error-creating-bean-with-name-scopedtarget-oauth2clientcontext-scope-session 我解决的方式就是使用他拉问题中提供的答案就可以解决
阅读全文
摘要:Spring Security 重写多个WebSecurityConfigurerAdapter 系统会报错 Error starting ApplicationContext. To display the conditions report re-run your application wit
阅读全文
摘要:nginx server { listen 9191; root E:\HelloProject\dist; index index.html index.htm; server_name localhost; #charset koi8-r; #access_log logs/host.acces
阅读全文
摘要:文件扩展名Content-Type(Mime-Type)文件扩展名Content-Type(Mime-Type) .*( 二进制流,不知道下载文件类型) application/octet-stream .tif image/tiff .001 application/x-001 .301 appl
阅读全文
该文被密码保护。