logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

springboot报错无法读取配置文件:Could not resolve placeholder ‘xxx‘ in value “${XXXX}

在启动类上配置以下代码即可@Beanpublic static PropertySourcesPlaceholderConfigurer placeholderConfigurer() {PropertySourcesPlaceholderConfigurer placeholderConfigurer = new PropertySourcesPlaceholderConfigurer();pl

#java#spring boot#linux
springboot使用达梦数据库进行sql操作时出现无效的表或视图名[TABLE_1]

springboot使用达梦数据库进行sql操作时出现无效的表或视图名[TABLE_1]我们在使用达梦数据库进行增删改查的时候sql要数据库名字+表名的形式来操作错误写法 badinsert into TABLE_1(NAME, AGE)values (#{name}, #{age})正确写法 goodinsert into TEST.TABLE_1(NAME, AGE)values (#{nam

#数据库
springboot如何发送邮件

首先加入pom依赖<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-mail</artifactId></dependency>2.编写配置文件spring:mail:host: smtp.qq.comu

#spring boot
mybatis字符替换(大于/小于/等于.....)

第一种写法(1):原符号<<=>>=&'"替换符号&lt;&lt;=&gt;&gt;=&amp;&apos;&quot;例如:sql如下:create_date_time &gt;= #{startTime} andcreate_date_time &.

#sql#java#mysql
如何解决component required a bean of type ‘org.springframework.web.client.RestTempla

在启动类上文件类上加上下面代码即可@Beanpublic RestTemplate restTemplate() {return new RestTemplate();}public static void main(String[] args) {SpringApplication.run(SakApplication.class, args);}@Beanpublic RestTemplate

#java
mybatis collection多级嵌套查询

mybatis collection多级嵌套查询需求:一个页面有多个模块,一个模块有多个对应的图片,需要查询出来的json格式需要三层嵌套实体类/*** (MesaMenu)实体类** @author ran* @since 2021-03-17 11:38:27*/@Data@NoArgsConstructorpublic class MesaMenu implements Serializab

安装docker时遇到failure: repodata/repomd.xml from mirrors.aliyun.com_docker-: [Errno 256] No

安装docker时遇到failure: repodata/repomd.xml from mirrors.aliyun.com_docker-: [Errno 256] No解决方法进入 /etc/yum.repos.d目录下,将所有有关 docker 的repo 全部删掉比如:rm -rf /etc/yum.repos.d/docker-ce.repo将所有有关 docker 的repo 全部删

#docker#linux#centos
spring boot静态变量里获取不到@value的值

spring boot静态变量里获取不到@value的值private static Integer time;@Value("${news.time}")public void setTime(Integer time) {InitProject.time = time;}我们可以通过属性的set方法去赋值,这样我们就可以在静态方法中去获取到这个属性的值。...

#java
springboot如何使用outlook发送邮件

首先要登陆outlook邮箱,点击设置滑到最下面选择完整设置进入后选择邮件->同步电子邮件打开pop如上设置下面是我的application.propertis设置请填上自己的邮箱名与密码,outlook邮箱目前不需要授权码,密码就是自己的邮箱密码记得按下面开启tls验证,不然会显示匿名用户无法通过验证1 spring.mail.username=xxxxxxx@outlook.com2 s

#java#maven#spring boot
javax.media:jai_core:1.1.3如何下载?

可以直接使用原下载地址http://www.java2s.com/Code/JarDownload/jai/jai_core-1.1.3.jar.zip或者使用百度网盘https://pan.baidu.com/s/1p3oNhIPUAOzQXKxjtQAqMg提取码:pq6hyou are welcome

#java#linux#mysql +2
    共 31 条
  • 1
  • 2
  • 3
  • 4
  • 请选择