Java Hyd Team
746 subscribers
986 photos
39 videos
670 files
690 links
https://teamhydteam.my.canva.site/

Can visit us on our website 😊
Still working on it 😊
Download Telegram
Apply after 5pm
Microsoft is hiring for Research Intern
Role: Research Intern
Passout year: 2023/2024/2025
Qualification: BE/B.Tech/ME/M.Tech/MCA/MSC
Salary: 60k - 70k per month
Location: Benguluru



Apply Now: https://careers.microsoft.com/us/en/job/1491041/
The @Qualifier annotation in Spring is used to differentiate a bean among the same type of bean objects.

If we have more than one bean of the same type and want to wire only one of them then use the @Qualifier annotation along with @Autowired to specify which exact bean will be wired.

If we don't use this annotation in the given project then we get an error like:

Caused by: org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type
This media is not supported in your browser
VIEW IN TELEGRAM
👏1
The @Required annotation applies to bean property setter methods and it indicates that the affected bean property must be populated in XML configuration file at configuration time. Otherwise, the container throws a BeanInitializationException exception
public class Student {
private Integer age;
private String name;

@Required
public void setAge(Integer age) {
this.age = age;
}
public Integer getAge() {
return age;
}

@Required
public void setName(String name) {
this.name = name;
}
public String getName() {
return name;
}
}
import org.springframework.context.annotation.*;

@Configuration
public class HelloWorldConfig {
@Bean
public HelloWorld helloWorld(){
return new HelloWorld();
}
}
<!DOCTYPE html>
<html>
<head>

</head>
<body>
<script>
let obj1=[{prectype:"none",timepoint:3,cloudcover:9,seeing:6,transparency:3,liftedindex:2,rhm2:6,wind10m:"direction",speed:2,temp2m:27},
{prectype:"none",timepoint:6,cloudcover:8,seeing:6,transparency:3,liftedindex:2,rhm2:5,wind10m:"direction",speed:2,temp2m:29},
{prectype:"none",timepoint:9,cloudcover:8,seeing:6,transparency:3,liftedindex:2,rhm2:5,wind10m:"direction",speed:2,temp2m:29},
{prectype:"none",timepoint:12,cloudcover:9,seeing:6,transparency:3,liftedindex:2,rhm2:6,wind10m:"direction",speed:2,temp2m:28}
];
document.write(`<table border="1"
align="center"
cellpadding="3">
<tr>
<th>1</th>
<th>2</th>
<th>3</th>
<th>4</th>
<th>5</th>
<th>6</th>
<th>7</th>
<th>8</th>
<th>9</th>
<th>10</th>
</tr>`);
obj1.forEach(function(element,index) {
document.write(`
<tr>
<td>${element.prectype}</td>
<td>${element.timepoint}</td>
<td>${element.cloudcover}</td>
<td>${element.seeing}</td>
<td>${element.transparency}</td>
<td>${element.liftedindex}</td>
<td>${element.rhm2}</td>
<td>${element.wind10m}</td>
<td>${element.speed}</td>
<td>${element.temp2m}</td>
</tr>

`);

});
document.write(</table>);
</script>
</body>

</html>
👍1