我已经通过这些链接完成了 2020 年标准的强制性步骤,但 WhatsApp 上仍然没有显示说明和缩略图。
我一直在测试的链接是: https: //research.verdhana.id/TEST
我的网站已通过 SSL 和有效的 SSL 证书(非自签名)进行保护。缩略图是大小为 18KB、尺寸为 400x400 的 JPEG 图像。
我使用 Vue.js 并且不使用服务器端渲染,因此我将所有强制元标记放在 index.html 中,这样即使不执行 JavaScript,爬虫也可以读取它们。
og:image 标签已使用完整路径和相同的域。og:url 元标记对于任何 URL 路径总是相同的,因为它是写在 index.html 中的,但我认为这应该不是问题。
以下是 head 标签内的标签:
<head>
<meta property="fb:app_id" content="my_fb_id" />
<meta property="og:image" content="https://research.verdhana.id/logo.jpg" />
<meta property="og:image:width" content="400" />
<meta property="og:image:height" content="400" />
<meta property="og:title" content="Verdhana | Research" />
<meta property="og:description" content="Verdhana research website" />
<meta property="og:url" content="https://research.verdhana.id" />
<meta property="og:site_name" content="Verdhana | Research" />
<meta property="og:type" content="website" …
Run Code Online (Sandbox Code Playgroud) 最近,我开始使用Spring Boot进行Web应用程序开发.
这是我的.properties文件内容:
#data source configuration
spring.datasource.url=jdbc:postgresql://localhost:5432/sampledb
spring.datasource.schema=sample
spring.datasource.username=postgres
spring.datasource.password=postgres
spring.datasource.driver-class-name=org.postgresql.Driver
#spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.minimumIdle=3
spring.datasource.maximumPoolSize=5
#jpa properties configuration
#spring.jpa.show-sql=false
spring.jpa.databasePlatform=org.hibernate.dialect.PostgreSQL82Dialect
spring.jpa.properties.hibernate.show_sql=true
spring.jpa.hibernate.ddl-auto=validate
#spring.jpa.properties.hibernate.default_schema=sample
Run Code Online (Sandbox Code Playgroud)
我实体类的这一部分:
@Entity
@Table(name = "sample_info")
public class SampleInfo implements Serializable{
private Long id;
private String code;
private Long serialNumber;
@Id
@GeneratedValue(
strategy = GenerationType.SEQUENCE,
generator = "sample_info_seq_gen"
)
@SequenceGenerator(
name = "sample_info_seq_gen",
sequenceName = "sample_info_seq",
allocationSize = 1
)
@Column(name = "id")
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
} …
Run Code Online (Sandbox Code Playgroud) postgresql hibernate spring-data spring-data-jpa spring-boot
hibernate ×1
html ×1
postgresql ×1
spring-boot ×1
spring-data ×1
thumbnails ×1
vue.js ×1
whatsapp ×1